Hi folks. I’m having trouble trying to figure out how to determine the id of a child document.
My basic structure is:
Our Restaurants
Restaurant Name
Restaurant Locations (all)
Location A
Location B
Location C
Restaurant Name
Restaurant Name
On "Restaurant Name" I am pulling the data from the three individual locations, but want the link for each of those locations to go to "Restaurant Locations (all)". I have everything working if I put the ID of "Restaurant Locations (all)" into my Ditto string. But I want to make it dynamic. I’ve been all over the place with Ditto and Ultimate parent and just can’t figure out how to get that child element.
The actual code I’m using is
[!Ditto?parents=`62` &depth=`2` &display=`all` &orderBy=`ASC` &tpl=`locations-some`!]
Where 62 is the ID of "Restaurant Locations (all)". There are going to be multiple instances of this page (all with different parents) so I don’t want to have to set up a bunch of hard-coded elements.
I know this can’t be that hard, but my brain is completely knotted.
Thanks.