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?
If you exclude the parents, Ditto will default to the document it is called from.
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.
trying to wrap my head around it.. but perhaps;
[~[+parent+]~]
Solution cannot be simpler:
&parents=`[*parent*]`
Glad you got it sorted, I don’t understand why you would have to call it in that fashion though.
I need to show list of siblings for the current page.