I use PHP to merge into a docx. Instead of merging several blocks, I thought of merging multiple arrays into one like this:
PHP:
$allLists = array(
array('name'=>'specialList', 'list'=>array( 'special1', 'special2', 'special3' ) ),
array('name'=>'individuelList', 'list'=>array( 'individuel1', 'individuel2', 'individuel3' ) ),
...
);
$TBS->MergeBlock('list', $allLists);
And then only display one of the arrays at a time. So I tried this in Word:
1
[list; block=tbs:p+tbs:p;sub1=list; when [list.name]= 'specialList']
• [list_sub1.val; block=tbs:p; when [list_sub1.val]!='']
2
3
4
[list; block=tbs:p+tbs:p;sub1=list; when [list.name]= 'individuelList']
• [list_sub1.val; block=tbs:p; when [list_sub1.val]!='']
5
But somehow the merge removes whatever is in between like:
1
• special1
• special2
• special3
• individuel1
• individuel2
• individuel3
5
Any suggestions?