We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 33238
    • 388 Posts
    Hello... i.m using ditto to call some children pages...

    the parent page ID is (9)

    [[Ditto? &parents=`9` &display=`all` &total=`all` &sortDir=`ASC` &tpl=`image-title-and-description`]] Works Well!!!

    But i need to use this code in other pages, so i.m trying to do this automatically, something like:

    [[Ditto? &parents=`[*id*]` &display=`all` &total=`all` &sortDir=`ASC` &tpl=`image-title-and-description`]]

    but ditto is calling a lot of pages, home, contact us, everything shocked shocked shocked undecided


    i just need to replace [*id*] for the current id document, to show the document children...

    That.s all, thank you so much!! grin grin grin
      --
      ysanmiguel.com
      • 24393
      • 83 Posts
      This should work, I do it all the time. Does it work if you call the snippet [!uncached?!]
        stevesunderland.com
        GRAPHICS | INTERACTIVE | MARKETING
        xhtml + ajax + seo websites powered by modx
        • 33238
        • 388 Posts
        YEAHHHHH My friend!!!! grin grin grin grin

        Uncached is the solution!!!

        [!Ditto? &parents=`[*id*]` &display=`all` &total=`all` &sortDir=`ASC` &tpl=`image-title-and-description`!]

        Thank you so much!!!
          --
          ysanmiguel.com