I am working with tagging. I want to first list all the tags in a container, then list all the related tags, like so:
Tag Item 1
---Related 1
---Related 2
---Related 3
Tag Item 2
---Related 1
---Related 2
---Related 3
Tag Item 3
---Related 1
---Related 2
---Related 3
etc.
I have this working, but I have duplicate Tag Items when there is more than one document in the container with the same tag ,ex.
Tag Item 1
---Related 1
---Related 2
---Related 3
Tag Item 2
---Related 1
---Related 2
---Related 3
Tag Item 2
---Related 1
---Related 2
---Related 3
Tag Item 3
---Related 1
---Related 2
---Related 3
etc.
Here is the ditto call I am using:
[!Ditto? &parents=`[*docStart*]` &tagData=`docType` &tagDelimiter=`,` &tpl=`tpl_docTypes` &sortBy=`docType` &sortDir=`ASC`!]
Here is the tpl:
<h4>[+docType+]</h4>
<blockquote>
[[Ditto? &parents=`[*docStart*]` &tpl=`tpl_docResourceList` &summarize=`all` &filter=`docType,[+docType+],1`]]
</blockquote>
How do I remove the duplicate listing?
Thanks.