I’m trying to use multiple levels of Ditto calls to create a national directory of support groups.
Page with List of States - Click on a state takes you to State Page with list of cities and Support Groups within each city
The Resource Tree is set up like this:
AWAKE Network Map
-United States
--Alaska
---Anchorage
----Support Group 1
----Support Group 2
---Fairbanks
----Support Group 1
I’m trying to use Ditto to assemble the content. It works for the AWAKE Network Map page, creating a list of all 50 states
Ditto for the list of States
[!Ditto? &parents=`100` &orderBy=`menuindex ASC` &tpl=`stateListTPL`!]
stateListTPL
<li><a href="[~[+id+]~]">[+pagetitle+]</a></li>
Output:
http://asaa.bigheadservices.com/support/introduction/a.w.a.k.e.-network-map.html
Alaska is the only state with any cities or groups right now
Ditto for the resulting State page
[!Ditto? &orderBy=`pagetitle ASC` &tpl=`stateCitiesTPL`!]
stateCitiesTPL
<div class="supportGroupCity">
<h3>[+pagetitle+]</h3>
[!Ditto? &orderBy=`pagetitle ASC` &tpl=`cityGroupsTPL`!]
</div>
I’ve tried moving the presumed Ditto call from the stateCitiesTPL to the Resource Content with the same result.
Output:
http://asaa.bigheadservices.com/support/introduction/a.w.a.k.e.-network-map/us-support-groups/alaska.html
It’s outputting the cities, but that’s where I’m stuck. I’m trying to also output the Support Group Details for each group within the city. Instead, I’m just getting an unparsed Ditto call.
Sample of Group Output
http://asaa.bigheadservices.com/support/introduction/a.w.a.k.e.-network-map/us-support-groups/alaska/anchorage.html
Can anybody help me with this?