<?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>
</channel>
</rss>