So if I get that right, the itemtags tv is called in the snippet like this: &tagData=`tvitemTags`
Correct. But, remember you have to set this tv up correctly. When you create the tv make sure you give it the Check Box input, the values need to be separated by the double pipes "||" and use the Delimited List widget so ditto knows how to separate the tags for sorting.
The &tpl=`itemTpl` defines the output, can that be any list I want? &tagDelimiter=`,` lets me specify the overlaying items in the &tags=`[*menutitle*]` are seperated, here with a comma? (Like so: &tags=`[*tag1,tag2,tag3*]` ).
Yes and no. &tpl defines the output so your itemTpl would be something like: <li><a href="[~[+id+]~]">[+whatever+]</a></li>, BUT the &tagDelimiter just tells ditto how those tv choices are separated and sorted it doesn’t allow you to put multiple tv’s in the call. The &tags parameter just tells ditto to aggregate all the links that were tagged with that parameter. I had mine set up a little bit different that yours so, your ditto call would be like this: [!Ditto? &parents=`10` &tpl=`itemTpl` &tagData=`tvitemTags` &tagDelimiter=`,` &tagMode=`onlyTags` &tags=`walks` !]
Your parent folder would contain all the villages and the directory page would have multiple ditto calls to create the lists, like so:
+Villages (id=10)
--village 1 (tagged with: walks, museum, food)
--village 2 (tagged with: walks, food)
--village 3 (tagged with: food)
--village 4 (tagged with: walks, museum)
--
--
--
--village 50
-Directory
On the directory page you’d have a ditto call for each category tag:
<h2>Walks</h2>
<ul>
[!Ditto? &parents=`10` &tpl=`itemTpl` &tagData=`tvitemTags` &tagDelimiter=`,` &tagMode=`onlyTags` &tags=`walks` !]
</ul>
<h2>Walks</h2>
<ul>
[!Ditto? &parents=`10` &tpl=`itemTpl` &tagData=`tvitemTags` &tagDelimiter=`,` &tagMode=`onlyTags` &tags=`food` !]
</ul>
<h2>Walks</h2>
<ul>
[!Ditto? &parents=`10` &tpl=`itemTpl` &tagData=`tvitemTags` &tagDelimiter=`,` &tagMode=`onlyTags` &tags=`museum` !]
</ul>
I hope this makes sense. Villages 1, 2, and 4 would all show up in the "Walks" category.