I’ve got a sitemap which uses Ditto starting at 0, and shows all pages. My template is very basic;
// This Ditto call appears in my page
<ol>
[[Ditto? &sortBy=`menu_index` &display=`all` &startID=`0` &depth=`0` &showInMenuOnly=`1` &sortDir=`ASC` &tpl=`Template_Sitemap`]]
</ol>
// This is my Ditto "Template_Sitemap" template
<li>
<a href="[~[+id+]~]">[+pagetitle+]</a>
</li>
But the problem is, it just lists all my documents in one big list.
How do I make Ditto make it displays child lists properly, like this example:
// This is how I would like my Sitemap to look
- Home
+ Page Container
- Page Child 1
- Page Child 2
- About us
+ Page Container
- Page Child 1
- Page Child 2
- Page Child 3
...
I know in Wayfinder you can use Inner Templates, Inner Rows - but is there a way of using Ditto to do something similar?