I’m making my own HTML sitemaps by assigning each of my entries to categories.
{exp:category_sorted_entries channel="services|pages|professionals|case_studies|ebooks" style="nested" group_id="10"}
{category}
<h3>{category_name}</h3>
<p> {/category}<br />
{entries}<br />
<a href="http://{site_url}{url_title}">{title}</a></p>
<p> {/entries}<br />
{/exp:category_sorted_entries}The issue I have is that my entries use different templates. So even though this code spits out all the links I have assigned to particular categories, I can’t differentiate which template to send the url to. So I’m left to go into each entry and make sure I set the pages URI and template accordingly in the pages tab.
I’m using the pages module, not structure for the site.
Is there any way to find out what template an entry is using? This way I can do a few conditionals and maybe get this working without having to assign the pages URI and template strictly in every single entry of my site.