I’m playing around with Ditto 2.0.1 and wondered if anyone can give me an idea of how to do this?
I want to display a list of parent document titles with their childrens’ titles directly underneath each. I also want to style the parent titles slightly differently from the children.
Can this be done from 1 call or does it need to be multiple?
I have been able to do this with an embedded wayfinder call in the ditto template. This works well if all you want is the data available to wayfinder (ie: no TVs). I guess that if you need access to more variables you could embed a ditto call within the ditto template (never done this but I guess it should work).
Yes I have embedded another Ditto call within the template but I can’t figure out how to get this call to only list the children of each main call.
Get what I mean?!
I think you need to set parents=`[+id+]` in the embedded ditto call
That seems to be doing the trick - thank you.
The only problem I have now is that I can only get 3 results to appear at any one time!
Any ideas?
-
☆ A M B ☆
- 24,524 Posts
That is the default, use the &display (I think; it used to be &summarize) parameter to change that.
http://ditto.modxcms.com/files/snippet-ditto-php.html#display
Thank you very much to both of you - works a treat