Hi there,
Firstly, please refer to this post as I require something very similar:
http://modxcms.com/forums/index.php/topic,38172.0.html
Essentially I am doing the same thing: I need to run a nested Ditto call, that will only return results if a child has children.
In my situation, I am going down an extra level and need to single out whether a
specific child has children of it’s own.
Here’s my tree:
Productions
- Production 1
--- Container 1
----- Child
----- Child
----- etc.
--- Container 2
----- Child
----- Child
----- etc.
--- Container 3
----- Child
----- Child
----- etc.
- Production 2
--- Container 1
----- Child
----- Child
----- etc.
--- Container 2
----- Child
----- Child
----- etc.
--- Container 3
----- Child
----- Child
----- etc.
-etc.
I will have a Ditto call (with a nested Ditto call within it’s template, I presume), that loops though each Production and sees whether Container 3 has children:
If Container 3 has children, the Ditto call uses it’s template to present the image/info of the Production, and a list of the children of Container 3.
If Container 3 has no children, Ditto returns nothing for that Production.
The children of Container 3 that are listed need to be ordered by a date TV (easy enough).
Container 3 and it’s children will all be using a specific template, if that helps.
As mentioned, this is time critical, need this done in the next few days.
Please get in touch asap via this thread or directly at
[email protected]
Payment is via Paypal, 50% upfront, 50% on completion.
Thanks,
David
Melbourne, Australia