I’m kind of struggling with this conceptually… I want to loop through content types and:
- see if there are any items in that CT that have a specific tag
- get and output the display name of the CT
- loop through the matching items in that CT, displaying some details about the item (at minimum, title)
Here’s what I have so far:
<Set name=currentslug><Route part="-1" /></Set>
<Loop items=company,product,periodical,article,book,document,usergroup,event,post>
<If loop exists type="{Field}" tag="{Get name=currentslug}">
<h3><Format case=pascal><Field /></Format></h3>
<ul>
<Loop>
<li><a href="{Field url}"><Field title /></a></li>
</Loop>
</ul>
</If>
</Loop>
The items variable holds the CT names I’m looping through.
Help?
Thank you
David