Categories > OpenTBS with DOCX >

extended page block

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: ggi
Date: 2014-09-23
Time: 11:10

extended page block

Hi

i am working with extended page blocks with no success so far.

Data is :
$livello1[] = array('Prodotto' => "U1001");
$livello1[] = array('Prodotto' => "U1002");
$livello1[] = array('Prodotto' => "U1003");
$livello1[] = array('Prodotto' => "U1004");

$livello2[] = array('Tabella' => "sub1");
$livello2[] = array('Tabella' => "sub2");

and template is :
<new-page>[livello1.Prodotto;block=tbs:page+tbs:page]
<new-page>[livello2.Tabella;block=tbs:page]

The requested result should be :
<new-page>U1001
<new-page>sub1
<new-page>sub2
<new-page>U1002
<new-page>sub1
<new-page>sub2
<new-page>U1003
<new-page>sub1
<new-page>sub2
<new-page>U1004
<new-page>sub1
<new-page>sub2

Instead the result I get is :
<new-page>U1001
<new-page>U1002
<new-page>U1003
<new-page>U1004
<new-page>sub1
<new-page>sub2

as if the extended block does not manage the following page in the template.

Any idea from experienced person like you ?
Thanks a lot
By: Skrol29
Date: 2014-09-28
Time: 23:32

Re: extended page block

Hi  Ggi,

The behavior you're describing is normal regarding to the TBS way of merging.

In order to have the result described, then you have to merge "livello2" first, and then "livello1".

In in fact the data of "livello2" should be different in each "livello1" record, the you have to use TBS sub-blocks.
See http://www.tinybutstrong.com/manual.php#html_block_subblock