Strange characters in tag url
Posted: 27 January 2008 03:58 PM   [ Ignore ]
Newbie
Rank
Total Posts:  5
Joined  2007-12-02

When clicking on a tag ("efficiency" in the example) in my tag cloud, I’m getting this string following my site address: /index.php/’tags/tag’/efficiency

The code I’m using to create the tag cloud looks like this:

{exp:tag:cloud groups="10" step="1" limit="40"}
<p><a href="{path=’tags/tag’}{websafe_tag}" title="{tag_name}" style="font-size:{step}px;">{tag}</a></p>
{/exp:tag:cloud}

I have created a template group “tags” and a template “tag” within that group. Please help me understand how to get rid of these strange characters.

Thanks,
Sean

Profile
 
 
Posted: 28 January 2008 07:05 AM   [ Ignore ]   [ # 1 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3272
Joined  2006-10-18

Sean,

You only need to create a TEMPLATE called tags - the tag part of the URL is just an indicator to EE to run the Tag:Entries loop.

 Signature 
Profile
 
 
Posted: 28 January 2008 10:37 AM   [ Ignore ]   [ # 2 ]
Newbie
Rank
Total Posts:  5
Joined  2007-12-02

I created a tags template, as suggested, but the strange characters that I originally asked about are still in the URL. Only the index template in my default template group shows up. In trying to work with this, I used several variations of the entries tag as described in the documentation in the index template of my default template group with no luck.

This is my first ExpressionEngine site, so I am probably missing something but it looks like the link generated by this code

{path=’tags/tag’}{websafe_tag}

is incorrect in my installation of this tag module. How can this be corrected? What am I missing?

Thanks,
Sean

Profile
 
 
Posted: 28 January 2008 01:08 PM   [ Ignore ]   [ # 3 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3272
Joined  2006-10-18

My apologies… the second half of the problem is that you need to make sure you’re using the “friendly” quotations:
(not sure if this Forum is going to convert them to the other ones...)

{path='tags/tag'}{websafe_tag}

 Signature 
Profile
 
 
Posted: 28 January 2008 01:29 PM   [ Ignore ]   [ # 4 ]
Newbie
Rank
Total Posts:  5
Joined  2007-12-02

Thank you! Amazing how the two versions of apostrophe can look exactly the same on-screen but perform differently.

All aspects of the this module that I have so far attempted to implement are working now. Thanks for your quick responses.

Sean

Profile