We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 19554
    • 59 Posts
    I am creating template that will be used on several documents. Idea is to create Ditto call that displays all documents in the same folder where current document is located.

    [!Ditto? &parents=`current document parent’s id` &depth=`1` &tpl=`Ditto_Tpl` &display=`50` !]

    How I can solve this?
      • 10226
      • 412 Posts
      If you exclude the parents, Ditto will default to the document it is called from.
        • 19554
        • 59 Posts
        If I exclude "parents" parameter, Ditto indeed defaults to current document.
        But that is not what I need. I want "parents" parameter to be current document’s parent.
          • 10226
          • 412 Posts
          trying to wrap my head around it.. but perhaps;

          [~[+parent+]~]
            • 19554
            • 59 Posts
            Solution cannot be simpler:

            &parents=`[*parent*]`
              • 10226
              • 412 Posts
              Glad you got it sorted, I don’t understand why you would have to call it in that fashion though.
                • 19554
                • 59 Posts
                I need to show list of siblings for the current page.