By: Paul
Date: 2014-09-25
Time: 16:51
|
Display Text only instead of fieldHi,
Is there any way I can display some text only for each block or field value, instead of pulling the value from the database. I know one can display php variables, but I do not have access to the php to create the variables as the client creates the templates. for example this would be ideal..... [onshow.'This is the text I want to display'] Paul. |
By: Skrol29
Date: 2014-09-28
Time: 23:35
|
Re: Display Text only instead of fieldHi,
They are several ways or getting data to merge with TBS. They are also many Data Reader Plugins ( see http://www.tinybutstrong.com/plugins.php#plugin_db ) But is you example why can't you simply write "This is the text I want to display" instead of [onshow.'This is the text I want to display'] ? |
By: Paul
Date: 2014-09-29
Time: 14:33
|
Re: Display Text only instead of fieldthanks for quick reply, sometimes one is blinded by the obvious, I will give it a bash in my template.
If using [block], and using your method, will this then copy my text and duplicate for each row (eg: using opentbs)? eg: <tr><td>[L.learner_id;block=tbs:row]</td><td>This is my text</td><td>[L.learner_first_name]</td></tr> will it give me? 1 This is my text Surname1 2 This is my text Surname2 3 This is my text Surname3 4 This is my text Surname4 |
By: Skrol29
Date: 2014-09-29
Time: 21:46
|
Re: Display Text only instead of fieldYes of course.
|