Categories > OpenTBS with ODS >

Dynamic merging

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: Torbi@Orbi
Date: 2016-03-17
Time: 19:30

Dynamic merging

Hi guys,

first of all TBS is awesome!
I try to merge blocks in an ods file dynamic, but it is not so easy.

PHP
$meta = array(
    'dynamicBlock' => '[t.val;block=tbs:cell]'
);
#merge new block in template
$tbs->MergeBlock('k', $meta);

$values = array(
                     'Monday',
                     'Tuesday',
                     'Wednesday'
                     'Thursday'
                     'Friday'
);

#merge values in new block
$tbs->MergeBlock('t',$values);

But if i do that i get only [t.val;block=tbs:cell] in my template. What do i wrong?
Is this not possible?

Thanks

Torbi@Orbi


By: Skrol29
Date: 2016-03-19
Time: 23:16

Re: Dynamic merging

Hi Torbi,

See parameter "protect"
   http://www.tinybutstrong.com/manual.php#html_field_prm_protect

By the way I'm afraid that "block=tbs:cell" will probably build an irregular table.
By: Torbi@Orbi
Date: 2016-03-21
Time: 16:21

Re: Dynamic merging

Hi Skrol29,

thanks for help, works perfect!