I’m currently trying to get Ditto to display the children of the current documents ’grandparent’ dynamically.
The structure is like this;
---Level 1
---Level 2
---Level 3
---Level 4
---Level 3
---Level 4
---Level 3
---Level 4
And so on. I would like the ditto call on Level 4 to display the immediate children of Level 2.
Because of the way my site works I am having to use a different template for Level 3 and Level 4 documents. I need the Ditto call to list the immediate children of Level 2 documents dynamically (ie inputting the document id manually is not an option because the site will be so large).
Currently for Level 3 documents my Ditto call is;
[[Ditto?parents=`[*parent*]`&depth=`1` &tpl=`DittoSubCats` &sortBy=`id` &sortDir=`asc` &paginate=`1` &summarize=`6` &filter=`hidemenu,0`]]
This works well for that level, but for Level 4 something else is needed.
I’ve tried using [+parent+] but that goes to the very first level. I have also tried embedding Ultimate Parent in the parents call, but it keeps giving me errors.
I am sure Ultimate Parent is the solution to my problem, but I do not know how to embed the call properly into the Ditto call.