We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Solspace Tag Module

Development and Programming

Jon @ Kernel's avatar
Jon @ Kernel
122 posts
16 years ago
Jon @ Kernel's avatar Jon @ Kernel

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}
       
Jon @ Kernel's avatar
Jon @ Kernel
122 posts
16 years ago
Jon @ Kernel's avatar Jon @ Kernel

{comment_url_title_auto_path} worked! No idea why it didn’t before, thanks very much.

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.