<?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: Apostrophe error</title>
   <link>http://www.tinybutstrong.com/forum.php?msg_id=15570</link>
   <description>The correct syntax is:<br />
&#91;code]&#91;onload; if &#91;var.omnic] = 0; then 'fornita dall''impianto']&#91;/code]</description>
   <pubDate>2017-02-17 08:36:59</pubDate>
  </item><item>
   <title>Re: Multiple pages - lost image after second page</title>
   <link>http://www.tinybutstrong.com/forum.php?msg_id=15525</link>
   <description>I have the same problem with an image only appearing on the first two pages... but the fix doesn't help for me (LibreOffice 5.1.x).<br />
<br />
<br />
This is my template:<br />
&#91;code]<br />
&#91;mydata.image;ope=changepic;block=tbs:page]&#91;mydata.pat_id]<br />
&#91;mydata.dna_nr]<br />
&#91;mydata.name]<br />
&#91;mydata.gebdat]<br />
&#91;/code]<br />
<br />
This is the array:<br />
&#91;code]<br />
Array<br />
(<br />
    &#91;0] =&gt; Array<br />
        (<br />
            &#91;image] =&gt; /srv/redcap/htdocs/plugins/hih/qrcode.png<br />
            &#91;pat_id] =&gt; ID12345<br />
            &#91;dna_nr] =&gt; D27893<br />
            &#91;name] =&gt; NAME<br />
            &#91;gebdat] =&gt; *DATE<br />
        )<br />
<br />
    &#91;1] =&gt; Array<br />
        (<br />
            &#91;image] =&gt; /srv/redcap/htdocs/plugins/hih/qrcode.png<br />
            &#91;pat_id] =&gt; ID12346<br />
            &#91;dna_nr] =&gt; D27894<br />
            &#91;name] =&gt; NAME<br />
            &#91;gebdat] =&gt; *DATE<br />
        )<br />
<br />
    &#91;2] =&gt; Array<br />
        (<br />
            &#91;image] =&gt; /srv/redcap/htdocs/plugins/hih/qrcode.png<br />
            &#91;pat_id] =&gt; ID12347<br />
            &#91;dna_nr] =&gt; D27895<br />
            &#91;name] =&gt; NAME<br />
            &#91;gebdat] =&gt; *DATE<br />
        )<br />
<br />
)<br />
&#91;/code]<br />
<br />
This ist the XML debug output of the template:<br />
&#91;code]<br />
    &lt;text:p text:style-name=&quot;P4&quot;&gt;<br />
    &lt;draw:frame draw:style-name=&quot;fr1&quot; xxx=&quot;Bild1&quot; text:anchor-type=&quot;paragraph&quot; svg:x=&quot;0.037cm&quot; svg:y=&quot;0.494cm&quot; svg:width=&quot;0.499cm&quot; svg:height=&quot;0.499cm&quot; draw:z-index=&quot;0&quot;&gt;<br />
     &lt;draw:image xlink:href=&quot;Pictures/opentbs_added_1.png&quot; xlink:type=&quot;simple&quot; xlink:show=&quot;embed&quot; xlink:actuate=&quot;onLoad&quot;/&gt;<br />
    &lt;/draw:frame&gt;<br />
    ID12345<br />
   &lt;/text:p&gt;<br />
   &lt;text:p text:style-name=&quot;P3&quot;&gt;<br />
    D27893<br />
   &lt;/text:p&gt;<br />
   &lt;text:p text:style-name=&quot;P1&quot;&gt;<br />
    &lt;text:soft-page-break/&gt;<br />
    NAME<br />
   &lt;/text:p&gt;<br />
   &lt;text:p text:style-name=&quot;P2&quot;&gt;<br />
    *DATE<br />
   &lt;/text:p&gt;<br />
   &lt;text:p text:style-name=&quot;P4&quot;&gt;<br />
    &lt;draw:frame draw:style-name=&quot;fr1&quot; xxx=&quot;Bild1&quot; text:anchor-type=&quot;paragraph&quot; svg:x=&quot;0.037cm&quot; svg:y=&quot;0.494cm&quot; svg:width=&quot;0.499cm&quot; svg:height=&quot;0.499cm&quot; draw:z-index=&quot;0&quot;&gt;<br />
     &lt;draw:image xlink:href=&quot;Pictures/opentbs_added_1.png&quot; xlink:type=&quot;simple&quot; xlink:show=&quot;embed&quot; xlink:actuate=&quot;onLoad&quot;/&gt;<br />
    &lt;/draw:frame&gt;<br />
    ID12346<br />
   &lt;/text:p&gt;<br />
   &lt;text:p text:style-name=&quot;P3&quot;&gt;<br />
    D27894<br />
   &lt;/text:p&gt;<br />
   &lt;text:p text:style-name=&quot;P1&quot;&gt;<br />
    &lt;text:soft-page-break/&gt;<br />
    NAME<br />
   &lt;/text:p&gt;<br />
   &lt;text:p text:style-name=&quot;P2&quot;&gt;<br />
    *DATE<br />
   &lt;/text:p&gt;<br />
   &lt;text:p text:style-name=&quot;P4&quot;&gt;<br />
    &lt;draw:frame draw:style-name=&quot;fr1&quot; xxx=&quot;Bild1&quot; text:anchor-type=&quot;paragraph&quot; svg:x=&quot;0.037cm&quot; svg:y=&quot;0.494cm&quot; svg:width=&quot;0.499cm&quot; svg:height=&quot;0.499cm&quot; draw:z-index=&quot;0&quot;&gt;<br />
     &lt;draw:image xlink:href=&quot;Pictures/opentbs_added_1.png&quot; xlink:type=&quot;simple&quot; xlink:show=&quot;embed&quot; xlink:actuate=&quot;onLoad&quot;/&gt;<br />
    &lt;/draw:frame&gt;<br />
    ID12347<br />
   &lt;/text:p&gt;<br />
   &lt;text:p text:style-name=&quot;P3&quot;&gt;<br />
    D27895<br />
   &lt;/text:p&gt;<br />
   &lt;text:p text:style-name=&quot;P1&quot;&gt;<br />
    &lt;text:soft-page-break/&gt;<br />
    NAME<br />
   &lt;/text:p&gt;<br />
   &lt;text:p text:style-name=&quot;P2&quot;&gt;<br />
    *DATE<br />
   &lt;/text:p&gt;<br />
&#91;/code]<br />
<br />
Thanks for any help,<br />
Christian<br />
</description>
   <pubDate>2017-01-04 15:45:46</pubDate>
  </item><item>
   <title>Re: Merge document footer in OpenOffice odt</title>
   <link>http://www.tinybutstrong.com/forum.php?msg_id=15459</link>
   <description>Hi Jan,<br />
<br />
As explained in the documentation, the command OPENTBS_SELECT_FOOTER is useless with OFT simply beacause headers and footers are stored in the main sub-file.<br />
<br />
Your second code « $TBS-&gt;MergeBlock('h', $header) » has no effect because block &quot;h&quot; has already been merged previously. If its' another physical block, then use another name.<br />
<br />
</description>
   <pubDate>2016-11-03 14:20:45</pubDate>
  </item><item>
   <title>Re: Rendering of HMTL stored in my database records</title>
   <link>http://www.tinybutstrong.com/forum.php?msg_id=15411</link>
   <description>Hi JPG,<br />
<br />
That's the problem of storing rich text (bold, underline, italic, ...) with a final format (HTML).<br />
That's also why some software store riche text in a simplified format (like BBcode).<br />
<br />
It would be quite difficult, probably impossible, to perform a function that fully translates HTML to ODT.<br />
I simple solution is simply to use the PHP function strip_tags() in order to delete HTML tags keeping the text.<br />
A more complicated solution is to start a function that does some translation from HTML to ODT but you have to make it.<br />
</description>
   <pubDate>2016-09-27 09:40:16</pubDate>
  </item><item>
   <title>Re: Problem adding a checkbox in a table</title>
   <link>http://www.tinybutstrong.com/forum.php?msg_id=15329</link>
   <description>I got it !<br />
<br />
The solution to check the checboxes was to add this in additional information :<br />
&#91;parts2.checked;att=form:current-state;ope=msk:*]<br />
<br />
I think the clue is to have the aame data array in the additional information and in the help property, in my case parts2<br />
<br />
</description>
   <pubDate>2016-06-17 16:14:29</pubDate>
  </item><item>
   <title>code to simplify header and footer merge (OPENTBS_SELECT_HEADER/OPENTBS_SELECT_FOOOTER)</title>
   <link>http://www.tinybutstrong.com/forum.php?msg_id=15302</link>
   <description>Changing the following 5 lines in tbs_plugin_opentbs.php makes OPENTBS_SELECT_HEADER/OPENTBS_SELECT_FOOOTER more useful when using odt templates.<br />
Otherwise you have to do a manual $tbs-&gt;PlugIn(OPENTBS_SELECT_FILE, &quot;styles.xml&quot;); and you have to write different code for .docx and .odt.<br />
<br />
Great thanks to all who made this template engine such a great software !<br />
<br />
&#91;code]<br />
--- a/external/tinybutstrong/plugins/tbs_plugin_opentbs.php<br />
+++ b/external/tinybutstrong/plugins/tbs_plugin_opentbs.php<br />
@@ -614,7 +614,10 @@ class clsOpenTBS extends clsTbsZip {<br />
        $x2 = intval($x2); // 0 by default<br />
        $file = $this-&gt;MsWord_GetHeaderFooterFile($Cmd, $x1, $x2);<br />
        break;<br />
-     case 'odt': case 'ods': case 'odp':<br />
+     case 'odt':<br />
+       $file = &quot;styles.xml&quot;;<br />
+       break;<br />
+     case 'ods': case 'odp':<br />
        $file = $this-&gt;ExtInfo&#91;'main'];<br />
      case 'xlsx': case 'pptx': <br />
        return false;<br />
&#91;/code]</description>
   <pubDate>2016-05-20 12:01:05</pubDate>
  </item><item>
   <title>Re: Changepic adjust doesn't make a difference</title>
   <link>http://www.tinybutstrong.com/forum.php?msg_id=15280</link>
   <description>Hi Skrol29,<br />
<br />
I am using CentOS 7 (headless) with libreoffice 4.3.7.2-5.el7_2.1 to do the merge.<br />
Here's the template file: https://www.dropbox.com/s/pom910eefy3x64k/test.odt?dl=0</description>
   <pubDate>2016-04-15 23:14:53</pubDate>
  </item><item>
   <title>Re: Need help to formation table</title>
   <link>http://www.tinybutstrong.com/forum.php?msg_id=15264</link>
   <description>It is too diffuclt for no, it would need an upgrade of TBS.<br />
The problem is ODT saved the number of spanned cell in the first cell but TBS knows the number of spanned cells only during the merge.</description>
   <pubDate>2016-03-29 23:34:00</pubDate>
  </item><item>
   <title>Re: Need help to create odt</title>
   <link>http://www.tinybutstrong.com/forum.php?msg_id=15259</link>
   <description>Thanks. I fixed the problem. All is working now</description>
   <pubDate>2016-03-25 15:09:47</pubDate>
  </item><item>
   <title>Re: How to get number of rows of a sub block having conditions</title>
   <link>http://www.tinybutstrong.com/forum.php?msg_id=15241</link>
   <description>Thank Skrol29</description>
   <pubDate>2016-03-15 11:00:53</pubDate>
  </item><item>
   <title>Re: OpenTBS MergeField acting irregularly</title>
   <link>http://www.tinybutstrong.com/forum.php?msg_id=15165</link>
   <description>I had a look at the zip archive for the problematic document and there are some clear irregularities in the problem areas. Additionally, I've found other documents merge fields without issue. I think the problem is that the template I'm using is originally a heavily formatted word file which I'm opening through open office leading to the content.xml file's structure getting garbled. Thanks very much for your assistance in developing this application, you've been a great help!</description>
   <pubDate>2016-02-24 14:11:10</pubDate>
  </item><item>
   <title>Re: Merging cells vertically in .odt</title>
   <link>http://www.tinybutstrong.com/forum.php?msg_id=15159</link>
   <description>Hi Nico,<br />
<br />
This feature is more complicated for LibreOffice than for Ms Word because LibreOffice use a special entity &lt;table:covered-table-cell/&gt; for cells that are covered by a merged cell.<br />
So it can be done, but not the same way as for Ms Word tables.<br />
<br />
Preparing data w'ont help you for this. The point is to transform a &lt;table:table-cell&gt; entity into &lt;table:covered-table-cell/&gt;.<br />
<br />
I think this will be included in the next OpenTBS version.</description>
   <pubDate>2016-02-22 23:35:52</pubDate>
  </item><item>
   <title>Re: OpenTBS doesn't merge blocks when using tab stops in the document</title>
   <link>http://www.tinybutstrong.com/forum.php?msg_id=15155</link>
   <description>Hi DenisW,<br />
<br />
This problem is well know and should be mentioned in the demo templates soon.<br />
When the TBS tag is split in the inner XML, then it is not merged, or badly merged.<br />
<br />
The workaround is to select the TBS tags, then cut, and then paste as « unformatted text ».<br />
This should avoid inner split.<br />
<br />
Regards,</description>
   <pubDate>2016-02-16 23:07:18</pubDate>
  </item><item>
   <title>Re: How to add one &quot;odt&quot; file into another &quot;odt&quot; file? (i use opentbs plugin)</title>
   <link>http://www.tinybutstrong.com/forum.php?msg_id=15133</link>
   <description>Hi, this would be very useful. At least to read a block from another file (e.g. a certain table) and place into the current template (replacing aplaceholder or something).<br />
<br />
The usecase would be (in my case) a serial letter with a fixed template, but all get a common settlement table on a last page uploaded by the operator for this particular serial letter issue. I don't want the operator to edit and upload the whole template, since Word destroys the OpenTBS placeholders randomly from time to time (by inserting spaces after the . or some magic invisible stuff).</description>
   <pubDate>2016-02-05 12:17:13</pubDate>
  </item><item>
   <title>Re: Grouping multidimensional datas with tables</title>
   <link>http://www.tinybutstrong.com/forum.php?msg_id=15097</link>
   <description>Cool! It's working now.<br />
<br />
Thank you so much!<br />
Martin</description>
   <pubDate>2015-12-16 19:27:52</pubDate>
  </item>
</channel>
</rss>