tag entries not displaying properly
Posted: 27 February 2008 09:50 AM   [ Ignore ]
Newbie
Rank
Total Posts:  11
Joined  2008-02-27

i have a tag cloud:

{exp:tag:cloud weblog="default_site" websafe_separator="_"}
<li><a href="{path=tagresults/tag}{websafe_tag}" title="{tag_name}">{tag}</a></li>
{/exp:tag:cloud}

which links to my template ‘tagresults’. however ‘tagresults’ is not displaying the tag entries using:

{exp:tag:entries weblog="default_site" inclusive="yes"}
<h1>{title}</h1>
{/exp:tag:entries}

any ideas for this newbie? i also noticed that exp:tag:entries worked when i hard-coded tag=“some tag” but i thought it would do this automatically from clicking on a link in the tag cloud.

thanks in advance.

Profile
 
 
Posted: 27 February 2008 09:54 AM   [ Ignore ]   [ # 1 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3717
Joined  2006-10-18

Yes, it should work like that…

Looking at your code, you’ve used _ as a websafe seperator. You’ll need to add that parameter to the Tag:Entries loop as well smile

{exp:tag:entries weblog="default_site" inclusive="yes" websafe_separator="_"}
<h1>{title}</h1>
{/exp:tag:entries}

 Signature 

Check out the new Solspace Blog!

Profile