Hi all,
I’ve been looking for a way to display child documents from a different parent document, IE: I have a parent document with the Ditto code in, but I want that Ditto code to call child documents from a different parent document.
But I’ve not been successful in finding a solution.
Any help would be much appreciated.
Alex.
-
☆ A M B ☆
- 24,524 Posts
That’s what the &parents parameter is for. You can specify one or more documents to use as parents for the documents you want to list.
here ya go. cached or uncached, depending on your other settings, but you just use the parents ditto parameter.
[[Ditto? &parents=`PARENT DOC ID GOES HERE`]]
no worries. here is a list of all of the ditto parameters. hope this helps!
http://ditto.modxcms.com/files/snippet-ditto-php.html