1. Super User
  2. Forum
  3. Wednesday, 31 January 2018
  4.  Subscribe via email

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!

 

Comment
There are no comments made yet.
Marc
Members
Accepted Answer Pending Moderation
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. 

Attachments (1)

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

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

For editing templates I like to use http://brackets.io/ 

 

Comment
There are no comments made yet.
  1. more than a month ago
  2. Forum
  3. # 1
Kurtis
Moderator
Accepted Answer Pending Moderation
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".

Comment
There are no comments made yet.
  1. more than a month ago
  2. Forum
  3. # 2
Accepted Answer Pending Moderation
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.

Comment
There are no comments made yet.
  1. more than a month ago
  2. Forum
  3. # 3
Kurtis
Moderator
Accepted Answer Pending Moderation
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:

Comment
There are no comments made yet.
  1. more than a month ago
  2. Forum
  3. # 4
Joyce Leet
Members
Accepted Answer Pending Moderation
0
Votes
Undo

This article is the blend of various stories and every one of the tales are profound. The initial segment of the article is about the land which is brimming with various things and attempt to make this land progressively commendable but now article servivces help individual to find out quality work. The center piece of this article is identified with the vehicles and this entire article is valuable for me.

Comment
There are no comments made yet.
  1. more than a month ago
  2. Forum
  3. # 5
  • Page :
  • 1


There are no replies made for this post yet.
Be one of the first to reply to this post!
Powered by EasyDiscuss for Joomla!