We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 27672
    • 168 Posts
    this is what i’d like to do...

    <table id="policiesAndProceduresTable" class="sortableTable noBorder" border="0" width="750">
    <thead>
    <tr>
    <th width="20%">#</th>
    <th width="30%">Title</th>
    <th width="*">Description</th>
    </tr>
    </thead>
    <tbody>
    [!Ditto? &parents=`23` &tpl=`policiesAndProceduresTop` &orderBy=`menuindex ASC`!]
    </tbody>
    </table>


    policiesAndProceduresTop:
    <tr>
        <td>[+description+]</td>
        <td>
        	<div class="toggleHead">[+title+]</div>
        	<div class="toggleBody">
                [!Ditto? &parents=`[+id+]` &tpl=`policiesAndProceduresInner`!]
            </div>
    	</td>
        <td>[+introtext+]</td>
    </tr>


    policiesAndProceduresInner:
    <div class="someClassName">[+title+]</div>


    but the second ditto call (from within the first chunk) is just output to the screen, it’s not processed. can you not do a snippet call from within a chunk? is there an alternative method to do what i’m attempting to do? i was thinking of doing wayfinder, but couldn’t figure out how to format since the parents output a table row, but the children would be divs. maybe it’s possible with the &parentRowTpl param, but if this is doable within ditto i’d rather do that i think. thanks.
      • 11975
      • 2,542 Posts
      Hi,

      make the second call (included in the ditto tpl) uncached.
      That way Phx will execute the snippet.

      :)
        Made with MODx : [url=http://www.copadel.com]copadel, fruits et l
        • 27672
        • 168 Posts
        nice - that worked just like i wanted it to. i was able to get this to work with wayfinder as well, but there’s far fewer chunks, so it’s a much cleaner call, with ditto. thanks a million!