I’m using the Solspace module and have 2 weblogs (News and Views) and tags are shared between the two. This works fine except on tag archives. I want to list all entries tagged ‘fruit’, for example, but some entries are in the ‘News’ weblog and others are in the ‘Views’ weblog. Listing the entries works fine using:
weblog="news|views"
However, all news entries need to point to the URL www.mysite.com/news/entrytitlegoeshere, and all views entries to www.mysite.com/views/entrytitlegoeshere.
Elsewhere on the site I’m using the {comment_url_title_auto_path} tag to do this, but it doesn’t work with the tagging module.
Any thoughts? Code is as follows:
<h3>News & Views</h3>
{exp:tag:entries inclusive="yes" weblog="news|views" orderby="entry_date" sort="asc" limit="100"}
{if no_results}No content matching this tag{/if}
<ul>
{if weblog="news"}<li><a href="http://{url_title_path=bulletin/news}">{title}</a> ({entry_date format="%j%S %F %Y"})</li>{/if}
{if weblog="views"}<li><a href="http://{url_title_path=bulletin/views}">{title}</a> ({entry_date format="%j%S %F %Y"})</li>{/if}
</ul>
{/exp:tag:entries}
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.