Categories > OpenTBS with DOCX >

dynamic lists docx

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: dodo
Date: 2015-09-01
Time: 15:23

dynamic lists docx

I need dynamics list (html ul -> li alternative) for docx

i find this http://www.tinybutstrong.com/forum.php?thr=3287 but i need all layers of array dynamic generated

from php array

$main = array(
    'block1' => array(
        'name' => 'name',
        'childs' => array(
            'name' => 'name',
            'childs' => array(
                'name' => 'name',
                'blocks' => array(
                    'item1', 'item2', 'item3'
                )
            )
        )
    ),
    'block2' => array(
        'name' => 'name',
        'childs' => array(
            'name' => 'name',
            'childs' => array(
                'name' => 'name',
                'blocks' => array(
                    'item1', 'item2', 'item3'
                )
            )
        )
    )
    ...
);

html output
<ul>
    <li>
        block1
        <ul>
            <li>
                name1
                item1, item2, item3
            </li>
            <li>
                name4
                item1, item2, item3
            </li>
            ...
        </ul>
    </li>
    <li>
        block2
        <ul>
            <li>
                name1
                item1, item2, item3
            </li>
            <li>
                name4
                item1, item2, item3
            </li>
            ...
        </ul>
    </li>
    ...
</ul>

Is possible do it with TBS in docx?
By: Skrol29
Date: 2015-09-01
Time: 23:16

Re: dynamic lists docx

Hi,

What do you mean by
> i need all layers of array dynamic generated