<?xml version="1.0" encoding="ISO-8859-1"?>
<rss version="2.0">
<channel>
  <title>TinyButStrong Forum</title>
  <description>TinyButStrong Forum in English</description>
  <link>http://www.tinybutstrong.com/</link>
  <item>
   <title>Re: Displaying chart data as numerical rather than percentage values</title>
   <link>http://www.tinybutstrong.com/forum.php?msg_id=15655</link>
   <description>So I run the following code:<br />
<br />
$subFile = 'word/embeddings/Microsoft_Excel_Worksheet3.xlsx';<br />
$TBS-&gt;PlugIn(OPENTBS_SELECT_FILE, $subFile);<br />
str_replace('$CLIENT_NAME$', 'Test String', $TBS-&gt;Source);<br />
$TBS-&gt;LoadTemplate(false);<br />
<br />
'$CLIENT_NAME$' is still there as the chart title. Am I doing it correctly? I have tried unzipping the docx file first. I'm obviously targeting the Microsoft_Excel_Worksheet3.xlsx file which contains the data for the chart I am targeting.<br />
<br />
Am I missing something?<br />
<br />
Thanks</description>
   <pubDate>2017-05-02 12:47:49</pubDate>
  </item><item>
   <title>Re: ope action show right n characters possible ?</title>
   <link>http://www.tinybutstrong.com/forum.php?msg_id=15625</link>
   <description>Hi,<br />
<br />
There is not such a feature in TBS, but you can do it using a custom onformat function.<br />
See http://www.tinybutstrong.com/manual.php#html_field_prm_onformat<br />
</description>
   <pubDate>2017-04-01 01:23:50</pubDate>
  </item><item>
   <title>Re: I need help retrieving 3 dimensional arrays through subblocks of subblocks while referencing by array keys</title>
   <link>http://www.tinybutstrong.com/forum.php?msg_id=15602</link>
   <description>Hi,<br />
<br />
I'm sorry but I'm a bit lost with your question.<br />
<br />
For the desired result A, the template could be:<br />
&#91;code]<br />
&lt;table&gt;<br />
     &lt;tr&gt;<br />
          &lt;td colspan=&quot;2&quot;&gt;Our guest speakers:&lt;/td&gt;<br />
     &lt;/tr&gt;<br />
     &lt;tr&gt;<br />
          &lt;td&gt;&#91;LIST2.BIO2.0.IMAGE;strconv=no;block=tr]&lt;/td&gt;<br />
          &lt;td&gt;Please welcome &#91;LIST2.BIO2.0.NAME], a.k.a. &#91;LIST2.BIO2.0.TITLE]&lt;br&gt;<br />
               &#91;LIST2.BIO2.0.LINES]<br />
          &lt;/td&gt;<br />
     &lt;/tr&gt;<br />
&lt;/table&gt;<br />
&#91;/code]<br />
<br />
Of course this can be a bit complicated if such a template has to be designed by &quot;Someone that is not expected to know anything more than HTML&quot;.<br />
Bu for such cases, I usually give to the user a simple syntax for fields (for example &quot;&#91;IMAGE]&quot;, &quot;&#91;TITLE]&quot;, ....) and when I load the template, just before doing the MergeBlock(), I do a str_replace()<br />
to convert &quot;&#91;IMAGE]&quot; into &quot;&#91;LIST2.BIO2.0.IMAGE]&quot;, and the same for other fields.<br />
It's also simple to insert &quot;;block=tr&quot; for only one field when necessary.<br />
And you can of course use the explicit syntax instead. For example: &#91;BIO_START] will be replaced with &quot;&#91;LIST2;block=begin]&quot;, and &quot;&#91;BIO_END]&quot; with &quot;&#91;LIST2;block=end]&quot;<br />
<br />
<br />
For the desired result B, the template could be:<br />
&#91;code]<br />
&lt;div&gt;&#91;LIST2.BIO2.0.TITLE]&lt;br&gt;<br />
&#91;LIST2.BIO2.0.PARAGRAPHS]<br />
&lt;/div&gt;<br />
&#91;/code]</description>
   <pubDate>2017-03-13 22:53:16</pubDate>
  </item><item>
   <title>Re: Header on docx</title>
   <link>http://www.tinybutstrong.com/forum.php?msg_id=15592</link>
   <description>&gt; How can i open an header?<br />
<br />
In Ms Word, you can see and edit the header directly within the application. But in backstage the main content of the document is saved in a sub-file and the header is saved in another sub-file.<br />
OpenTBS can merge data in one sub-file at a time. By default, the main sub-file is loaded.<br />
<br />
&gt; I have headers in the pages, how can i attach these headers to the blocks? <br />
<br />
In the template, enter a block definition as usual.<br />
At The Php side, use the command OPENTBS_SELECT_HEADER in order to load the header sub-file as current.<br />
See <br />
http://www.tinybutstrong.com/opentbs.php?doc#opentbs_select_header<br />
</description>
   <pubDate>2017-03-11 23:42:49</pubDate>
  </item><item>
   <title>Re: Display as Tags</title>
   <link>http://www.tinybutstrong.com/forum.php?msg_id=15579</link>
   <description>Some Db Engines have an aggregate function that concatenates strings. Like GROUP_CONCAT() in MySQL.<br />
With such a function the solution is in your query.<br />
<br />
Otherwise you can use TBS sub-blocks.</description>
   <pubDate>2017-02-27 22:54:55</pubDate>
  </item><item>
   <title>Re: Nested blocks?</title>
   <link>http://www.tinybutstrong.com/forum.php?msg_id=15578</link>
   <description>I think there is no need to have a sub block.<br />
You simply have to merge BB first, then AA. So BB will be repeated for each row of AA.<br />
<br />
For selecting the correct items in the combo-boxes, I can use 2 technical:<br />
First is a dedicated plugins: http://www.tinybutstrong.com/plugins.php?help#plugin_html<br />
The second is using JavaScript.</description>
   <pubDate>2017-02-27 22:23:52</pubDate>
  </item><item>
   <title>Re: catch error messages before it reaches client</title>
   <link>http://www.tinybutstrong.com/forum.php?msg_id=15571</link>
   <description>Hi,<br />
<br />
TBS has no common error handler for now because of history reasons.<br />
BUt there a solution: if you set « TBS-&gt;SetOptions('noerr', true) », then no error message is displayed, the number of error is given by « $TBS-&gt;ErrCount » and the errors messages are given by « $TBS-&gt;ErrMsg ».<br />
So you can check at the end of the merge if there is any error.</description>
   <pubDate>2017-02-17 08:46:42</pubDate>
  </item><item>
   <title>Re: Wrong order of template content after show ?!?</title>
   <link>http://www.tinybutstrong.com/forum.php?msg_id=15569</link>
   <description>Hi  Fabrizio,<br />
<br />
The point is that your function getInclude() should not drive the template. It should only return the result of the content for the field.<br />
So there should be no « $app&#91;&quot;TBS&quot;]-&gt;Source.=$c; » nor « $app&#91;&quot;TBS&quot;]-&gt;LoadTemplate(null); ».<br />
The double content you've got is because of that: inserted once by the function, and once by TBS. <br />
<br />
Considering your previous post, I guess you're doing this for merging fields in your sub-templates.<br />
<br />
For inserting your JS ans CSS contents, did you try with TBS sub-templates ?<br />
Something like this :<br />
&#91;code]&lt;script type=&quot;text/javascript&quot;&gt;&#91;include.js;file=&#91;val];magnet=script]&lt;/script&gt;&#91;/code]<br />
This will insert the sub-template, merge &#91;onload] fields in the sub-template. It will delete the &lt;script&gt; entity if value of &quot;js&quot; is empty, thanks to parameter &quot;magnet&quot;.<br />
<br />
If you actually need to drive the merging of sub-template, then it is better to use parameter &quot;onformat&quot; with parameter &quot;subtpl&quot;.<br />
This enables you to call a PHP function where the scope of TBS is only for the sub-template.<br />
<br />
See:<br />
http://www.tinybutstrong.com/manual.php#html_subtemplate<br />
http://www.tinybutstrong.com/manual.php#html_field_prm_file<br />
http://www.tinybutstrong.com/manual.php#html_field_prm_subtpl<br />
<br />
</description>
   <pubDate>2017-02-16 09:39:19</pubDate>
  </item><item>
   <title>Re: Include Javascript file with TBS fields</title>
   <link>http://www.tinybutstrong.com/forum.php?msg_id=15568</link>
   <description>I refactored my code, and now it works. But I have instead a problem of the order in which the included files are presented.<br />
<br />
So I've opened another thread, because the problem is very different: http://www.tinybutstrong.com/forum.php?thr=3741<br />
<br />
Still, is someone have a good idea other than mine....</description>
   <pubDate>2017-02-13 15:08:03</pubDate>
  </item><item>
   <title>Re: Using class method as MergeField function</title>
   <link>http://www.tinybutstrong.com/forum.php?msg_id=15557</link>
   <description>Thank you!!!!</description>
   <pubDate>2017-02-07 10:29:33</pubDate>
  </item><item>
   <title>Re: the key 'pagetitle' does not exist or is not set in VarRef</title>
   <link>http://www.tinybutstrong.com/forum.php?msg_id=15548</link>
   <description>Maybe you should write one, Skrol ;)</description>
   <pubDate>2017-02-04 12:43:33</pubDate>
  </item><item>
   <title>Re: TBS with PDF?</title>
   <link>http://www.tinybutstrong.com/forum.php?msg_id=15547</link>
   <description>I'd suggest you create 3 html templates, one for header, one for footer and one for the main content, and then convert it with wkhtmltopdf.</description>
   <pubDate>2017-02-04 12:40:17</pubDate>
  </item><item>
   <title>Re: Variables are not changed</title>
   <link>http://www.tinybutstrong.com/forum.php?msg_id=15539</link>
   <description>I resolved!<br />
Fir personal template need exec $TBS-&gt;PlugIn(OPENTBS_SELECT_SHEET, 1) after load template. <br />
</description>
   <pubDate>2017-01-19 15:40:21</pubDate>
  </item><item>
   <title>Re: How to get all blocks from template? </title>
   <link>http://www.tinybutstrong.com/forum.php?msg_id=15537</link>
   <description>Hi,<br />
<br />
This feature does not exists. You have to search them yourself in the source of the template : $TBS-&gt;Source.<br />
<br />
TBS cannot do it for now because TBS fields can be build dynamically.</description>
   <pubDate>2017-01-18 23:48:38</pubDate>
  </item><item>
   <title>Re: List all field from a template</title>
   <link>http://www.tinybutstrong.com/forum.php?msg_id=15528</link>
   <description>Hi,<br />
<br />
There is no such feature in native.<br />
This is because a field can also be build dynamically (like in dynamics columns for example).<br />
But you can try to get all static fields simply with a regexp on the template, I guess.</description>
   <pubDate>2017-01-09 10:15:52</pubDate>
  </item>
</channel>
</rss>