Wednesday, 31 January 2018
  7 Replies
  7.8K Visits
0
Votes
Undo
  Subscribe

Is there a translation table for all variables that can be used in templates if I want to create my own from scratch.

I would like to use variables like !EXERCISE! for assignment in the Midweek schedule.

But then I need to pinpoint the correct speaker... like !FM1_SPEAKER_B_EXERCISE!

 

10 months ago
·
#9423
0
Votes
Undo

and you can use javascript (see the territory or the combo_3/we-schedule_3 templates)

10 months ago
·
#9422
0
Votes
Undo

Check the Help file, it has all (hopefully...) printing tags.


https://www.theocbase.net/support-forum/post/1097-donations.html

For accessing the database my personal preference is http://sqlitebrowser.org/

For editing templates I now use https://code.visualstudio.com/ 

 


10 months ago
·
#9421
0
Votes
Undo

hello, is there something new?

i created my own template too. But one for 4weeks and the other one for 5weeks. Now i want to combine them and afterwards you can habe this template too.

I want to use javascript to check the weeks of !DATE!, so can i use javascript and also, can i use !DATE! as an argument/parameter/variable to parse to the function when calling?

5 years ago
·
#3147
0
Votes
Undo

Yes.  The Basic idea is:

#IF !TagName! = something# Text shown if TagName = something #ELSEIF !OtherTag! = somethingelse# other text #ELSE# other text #ENDIF#

IFs can be nested, and aren't case-sensititive.  The #ELSE# is optional, of course.

Operators are =, <, >, <>, Has, HasNot, Empty, NotEmpty.  You can also use AND and OR.  Currently we can't do parethesis.  Hopefully your conditions aren't that complex :)

If the only text in an element is a conditional (the IF or the Else or the Endif), then that element is removed from the final output.  This allows conditionals to include/remove whole rows in a table, for instance.

If you open up the existing templates, that will give you some examples.  Here's one from the WE Schedule:

5 years ago
·
#3143
0
Votes
Undo

While that is in progress, is there any comparison operators?  For example == (equals), or like?  I am trying to work out how to show certain items at certain times in the repeat sections.  For example, when using the LM Worksheet, I am:

1. trying to show the chairman on the proper worksheet, or the auxillary counselor on the proper one, etc.

2. not show the auxillary school when there is a C.O. visit

 

Thanks,

Rodney S.

5 years ago
·
#3080
0
Votes
Undo

I know, it's silly not to have an official list.  We are working on that now that the 2018 fire drill is over.  Hopefully we can post that "soon".

5 years ago
·
#3070
0
Votes
Undo

The direct answer is (probably) NO, for someone would have posted it, I suppose.

Someone assembled a list of placeholders a while ago, you may search here on the forum, but some have gone, some have changed name, and some new ones have been introduced.

It is more practical to make a print of any schedule and then compare output with the original html, to see what the placeholders mean. 

For your specific question: you would need !FM1_SPEAKER_B_STUDY! for the lesson number, and !FM1_SPEAKER_B_STUDYNAME! for the name of the lesson.

Similarly, though exercise is used to refer to the suggested exercises at the end of each be-lesson, the word in the various languages for Lesson/study is retrieved by !STUDY!

Some very useful placeholders that I did not spot in the custom templates yet, have been used in the attached template, created by another user. 


https://www.theocbase.net/support-forum/post/1097-donations.html

For accessing the database my personal preference is http://sqlitebrowser.org/

For editing templates I now use https://code.visualstudio.com/ 

 


  • Page :
  • 1
There are no replies made for this post yet.
Be one of the first to reply to this post!