We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 15001
    • 697 Posts

    The solution I found is making use of <iframe> elements in the Ditto chunk.

    Hi,

    I cannot succeed in listing Datagrid widgets with Ditto.
    Here the structure:
    Parent with Ditto call
    |
    |____Child with "[*placeholders_table*]" Datagrid widget
    Displaying the widget in the child document by calling it from the templates works perfectly. But impossible to return the table to the parent document.

    The [*content*] of the child document:
    <p>Table describing placeholders</p>
    [*placeholders_table*]

    The parent document has the following Ditto call:
    [[Ditto? &tpl=`ClesValeurs` ]]

    The {{ClesValeurs}} chunk contains this:
    <div style="background:yellow">
    <p>Some child content.</p>
    [+content+]
    </div>

    The parent document shows "Some child content" as well as the "Table describing placeholders" paragraphs. But the datagrid is not displayed.

    I assume the problem comes with the order in which things are parsed.
    Any trick to overcome this?

    Thanks.