We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 33114
    • 518 Posts
    I ve tried a crazy consiquence of calling something inside of something... etc and failed unfortunately...

    Here’s what I’ve done:

    1. a make a ditto call like this in a template
    <h1>header:</h1>
    <ul>[[Ditto? &startID=`[*parent*]` &tpl=`ditto_li` &summarize=100]]
    </ul>

    to call other children of the same parent
    2. then I want to put this call in a chunk like {{children_list}} and call that chunk from a template... what I get is the list of ROOT children, not the children of the current parent.
    3. initially the idea of putting such a call in a chunk was to call that chunk from a TV... the input optins od that TV would be
    Children list=={{children_list}}||etc...
    . This outputs the same - ROOT children
    4.ok then, I decided to make a ditto call from that TV directly:
    Children list==[[Ditto? &startID=`[*parent*]` &tpl=`ditto_li` &summarize=100]]

    same here.

    Well there still is a resolution - to write a short snippet. But how nice would it be when my construction worked.

    thanks
      http://modx.ru - российская поддержка MODx
      http://newscup.ru - экспериментальный проект
      http://yentsun.com - персональный сайт
      • 22303 MODX Staff
      • 10,725 Posts
      This will be possible in the future once the new recursive parsing features are introduced.
        • 33114
        • 518 Posts
        Quote from: OpenGeek at Jun 01, 2006, 10:40 AM

        This will be possible in the future once the new recursive parsing features are introduced.

        Oh I see...thanks

        for now I’ve patched ditto with this
        if ($startID == "p") {$startID = $modx -> documentObject['parent'];}
          http://modx.ru - российская поддержка MODx
          http://newscup.ru - экспериментальный проект
          http://yentsun.com - персональный сайт
          • 6726
          • 7,075 Posts
          Very interresting Yentsun, thanks for sharing grin
            .: COO - Commerce Guys - Community Driven Innovation :.


            MODx est l&#39;outil id