<?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: MergeBlocks and assoc array</title>
   <link>http://www.tinybutstrong.com/forum.php?msg_id=12211</link>
   <description>Hi Jef,<br />
<br />
What is your question?<br />
<br />
&gt; I need this mergeBlock, to delete when an array field is empty, otherwise i could have used MergeField.<br />
<br />
You can use MergeField and catch if the data is empty using parameter &quot;noerr&quot; and &quot;magnet&quot; together on the first field. (see manul for parameter &quot;magnet&quot;)<br />
<br />
&gt; If i want to use a MergeBlock, i have to do it like this ... which is a lot more cumbersome.<br />
<br />
Is this available for you ? : <br />
PHP: &#91;code]$TBS-&gt;MergeBlock('nd', $nd);&#91;/code]<br />
OpenOffice:&#91;code]&#91;nd.post.bedrijf;block=...]&#91;nd.post.address]&#91;/code]<br />
<br />
<br />
<br />
<br />
</description>
   <pubDate>2012-02-11 01:02:23</pubDate>
  </item><item>
   <title>Re: remove unused block and newline</title>
   <link>http://www.tinybutstrong.com/forum.php?msg_id=12186</link>
   <description>just want to let you know, i process a calc template file with a table 3x1000, just 0,09 seconds to create the file. Amazing fast, if you ask me. At 10000 rows, i approach a second.<br />
</description>
   <pubDate>2012-01-31 22:41:27</pubDate>
  </item><item>
   <title>Re: &#91;FR] TBS avec Zend MVC</title>
   <link>http://www.tinybutstrong.com/forum.php?msg_id=12093</link>
   <description>Problème corrigé, c'était des scripts PHP avec BOM.</description>
   <pubDate>2011-12-07 21:17:13</pubDate>
  </item><item>
   <title>Re: mergefiel image</title>
   <link>http://www.tinybutstrong.com/forum.php?msg_id=12050</link>
   <description>Bonjour,<br />
<br />
Pour TinyDoc, il vaut mieux contacter Olivier, l'auteur de cette librairie.<br />
<br />
Cordialement,</description>
   <pubDate>2011-10-29 22:44:33</pubDate>
  </item><item>
   <title>Re: forcing a page break in a block merge</title>
   <link>http://www.tinybutstrong.com/forum.php?msg_id=12036</link>
   <description>Thanks, <br />
Good suggestion.<br />
<br />
bill</description>
   <pubDate>2011-10-22 12:50:55</pubDate>
  </item><item>
   <title>Re: tinydoc/image/pop-ups</title>
   <link>http://www.tinybutstrong.com/forum.php?msg_id=11988</link>
   <description>thanks a lot, <br />
I wrote directly to Olivier. If I find the solution to fix the problem, I will write it in this post!<br />
Paolo</description>
   <pubDate>2011-10-04 09:42:42</pubDate>
  </item><item>
   <title>Re: How to show/hide part of document based on variable value?</title>
   <link>http://www.tinybutstrong.com/forum.php?msg_id=11826</link>
   <description>Well, it's now a bit awkward - it just works now without a reasonable explanation.... I can't realy imagine what has changed since... Even the server hasn't been rebooted in the meantime.<br />
<br />
When doing the small example for you I did test it numerous times on my server and it did not work. The both example outputs where also generated from the same template. Somehow if I use the same template file now, it gives me the expected results.<br />
<br />
Well what can I say for the end... I'm sorry to have wasted your time. I'm really frustrated not to be able to know what actually went wrong the first couple of tries.<br />
<br />
To everyone else reading, the next piece of code works if you want to show/hide a part of your template:<br />
&#91;code]<br />
&#91;onload;block=begin;when &#91;var.category]=1]<br />
This line should be shown, AND IT IS.<br />
&#91;onload;block=end]<br />
&#91;/code]</description>
   <pubDate>2011-07-09 02:17:59</pubDate>
  </item><item>
   <title>Re: couleur lignes différentes</title>
   <link>http://www.tinybutstrong.com/forum.php?msg_id=11774</link>
   <description>Il y a une fonction native de TBS pour faire ça ultra facilement.<br />
<br />
Regarde les exemples :<br />
http://www.tinybutstrong.com/examples.php?e=dataarray&amp;m=result</description>
   <pubDate>2011-06-23 23:53:49</pubDate>
  </item><item>
   <title>Re: &#91;fr] cartouche de commande</title>
   <link>http://www.tinybutstrong.com/forum.php?msg_id=11682</link>
   <description>Nickel .... grand merci Skrol29<br />
;-P</description>
   <pubDate>2011-05-12 08:39:20</pubDate>
  </item><item>
   <title>Re: &#91;fr] retour chariot si valeur</title>
   <link>http://www.tinybutstrong.com/forum.php?msg_id=11677</link>
   <description>Bonjour,<br />
<br />
Si ceux son des retour à la ligne par paragraphe :<br />
&#91;code]Boîte postale : &#91;blk.bp;magnet=text:p]&#91;/code]<br />
<br />
Si ceux sont des retours-chariots par saut de ligne simple, c'est plus embêtant car on ne pourra pas supprimer le texte qui se trouve avant le champ TBS.<br />
Il faut faire :<br />
&#91;code]&#91;blk.bp;magnet=text:line-break;mtype=*m]&#91;/code]<br />
</description>
   <pubDate>2011-05-11 22:37:09</pubDate>
  </item><item>
   <title>Re: &#91;fr] Tinydoc affichage conditionnel</title>
   <link>http://www.tinybutstrong.com/forum.php?msg_id=11348</link>
   <description>Salut,<br />
<br />
J'ai l'impression que tu ne peux pas faire varier le contenue de l'entête de page dans OpenOffice.<br />
Tu peux choisir de l'afficher ou pas sur chaque page, mais quand il s'affiche c'est le même contenu pour tous.<br />
Ce contenu est effectivement enregistré dans le le sous-fichier &quot;styles.xml&quot;.</description>
   <pubDate>2011-01-26 10:46:09</pubDate>
  </item><item>
   <title>Re: Serial letters -&gt; Save each instance?</title>
   <link>http://www.tinybutstrong.com/forum.php?msg_id=11155</link>
   <description>oh silly me :(<br />
<br />
but thx anyway :)</description>
   <pubDate>2010-11-18 08:21:56</pubDate>
  </item><item>
   <title>Re: subblocks</title>
   <link>http://www.tinybutstrong.com/forum.php?msg_id=10777</link>
   <description>Thank you.<br />
I live and learn.<br />
<br />
bill</description>
   <pubDate>2010-08-03 11:08:09</pubDate>
  </item><item>
   <title>Re: encapsulation problem with openoffice</title>
   <link>http://www.tinybutstrong.com/forum.php?msg_id=10699</link>
   <description>hi Pupah,<br />
<br />
The PHP snippet you've posted do not produce a correct data representation. After it is run, $mm contains only accounts names of the last contact, and $cc contains a resource id. But what ever, I think I have the idea of what you're trying to do.<br />
<br />
In order to perform your encapsulation, you just have to use TBS sub-blocks. They are described in the online examples. Go and see here <br />
  http://www.tinybutstrong.com/examples.php<br />
and choose the Sub-block Example. It works exactly the same way for HTML or OpenOffice, you just have to take in account that the row entity in an OO table is &quot;table:table-row&quot;.<br />
<br />
Assuming that the $contacts array contains records having an &quot;id&quot; column and an &quot;mm&quot; column. And that the mm column contains the records having a &quot;name&quot; column. Then you can build your template with a table &#91;A] with:&#91;code]<br />
 &#91;blk_cc.id;block=table:table-row;sub1=mm]&#91;/code]<br />
and a table &#91;B] placed inside table A with:&#91;code]<br />
&#91;blk_cc_sub1.name;block=table:table-row]&#91;/code]<br />
(not tested)<br />
</description>
   <pubDate>2010-07-03 01:10:49</pubDate>
  </item><item>
   <title>Re: conditional tag fit in another conditional tag then parameter</title>
   <link>http://www.tinybutstrong.com/forum.php?msg_id=10669</link>
   <description>Hi Arnaud,<br />
<br />
Thank your for sharing this information.<br />
<br />
</description>
   <pubDate>2010-06-23 10:17:01</pubDate>
  </item>
</channel>
</rss>