The search results feature allows you to use {auto_path} to take you to the correct template_group/template, however, I need a similar solution for regular garden variety channel entries.
I have a news feed section on the home page that displays the 3-5 most recent entries from five different channels. The code is like this:
<h4>Recent News Posts</h4>
<ul class="inline-list">
{exp:channel:entries channel="community|government|education|business|history" limit="3"}
<li><a href="/news/{url_title}">{title}</a></li>
{/exp:channel:entries}
</ul>
Currently I have a generic "news" placeholder in the path, but what I need is to direct each entry to its appropriate section. Outside the search results {auto_path} I have not been able to find anything. I am open to suggestions.