tag_id instead websafe_tag in tag cloud
Posted: 19 January 2008 04:00 AM   [ Ignore ]
Jr. Member
RankRank
Total Posts:  37
Joined  2007-09-29

Good afternoon,

I have windows-1251 charset of my pages and when I use standart code in tag cloud

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

to show russian tags in browser row, I collided with small problem with output (look picture)

I think problem can be solved by using tag_id in links. I mean next

“{path=’tags/tag’}{tag_id}”


but this code not work.
Thanks!
Image Attachments
tags.jpg
Profile
 
 
Posted: 21 January 2008 07:16 AM   [ Ignore ]   [ # 1 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3232
Joined  2006-10-18

Qrat,

Try converting High ASCII Characters to Entities in your EE settings

CP Home › Admin › Website Administration › Global Website Preferences

 Signature 
Profile
 
 
Posted: 21 January 2008 08:21 AM   [ Ignore ]   [ # 2 ]
Jr. Member
RankRank
Total Posts:  37
Joined  2007-09-29

Unfortunately It didn’t help

Profile
 
 
Posted: 21 January 2008 08:28 AM   [ Ignore ]   [ # 3 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3232
Joined  2006-10-18

There isn’t a {tag_id} variable.

But if you’re referring to using the non-"Web-safe" Tag in the URL, and just using the regular Tag name, try this:

{exp:tag:cloud gallery="gallery" category="1" groups="10" step="3" limit="40"
a href ="/template/tags/tag/{tag}/" title="{tag_name}" style="font-size:{step}px;">{tag}< /
{/exp:tag:cloud}

Or:

{exp:tag:cloud gallery="gallery" category="1" groups="10" step="3" limit="40"
a href ="http://www.yoursite.com/template/tags/tag/{tag}/" title="{tag_name}" style="font-size:{step}px;">{tag}< /
{/exp:tag:cloud}

Obviously using the correct path to the templates smile

 Signature 
Profile
 
 
Posted: 21 January 2008 08:48 AM   [ Ignore ]   [ # 4 ]
Jr. Member
RankRank
Total Posts:  37
Joined  2007-09-29

the same result, not works. Does {tag_id} wrong way? why don’t use this parameter, optional.

Profile
 
 
Posted: 22 January 2008 07:56 AM   [ Ignore ]   [ # 5 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3232
Joined  2006-10-18

I’m not sure what you’re asking… and there isn’t a {tag_id} variable

 Signature 
Profile
 
 
Posted: 22 January 2008 08:17 AM   [ Ignore ]   [ # 6 ]
Jr. Member
RankRank
Total Posts:  37
Joined  2007-09-29

I mean, path like this
a href ="http://www.yoursite.com/template/tags/tag/{tag_id}"
Here possible not to take into account foreign wordsб like russian.

Profile
 
 
Posted: 22 January 2008 02:52 PM   [ Ignore ]   [ # 7 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3232
Joined  2006-10-18

That will NOT work as there is NO {tag_id} variable.
Unless you’re suggesting a new feature where you can view tags by ID’s like you would for Permalink’s on Weblog Entries.

Though, perhaps you could try:

<a href ="http://www.yoursite.com/template/tags/tag/{tag}">

I will otherwise submit this as a feature request smile

 Signature 
Profile
 
 
Posted: 23 January 2008 08:04 AM   [ Ignore ]   [ # 8 ]
Jr. Member
RankRank
Total Posts:  37
Joined  2007-09-29
Pie Man - 22 January 2008 02:52 PM

Though, perhaps you could try:

<a href ="http://www.yoursite.com/template/tags/tag/{tag}">

The same result as with websafe_tag

I will otherwise submit this as a feature request smile

Thanks, I,ll be wait

Profile
 
 
Posted: 12 February 2008 09:06 AM   [ Ignore ]   [ # 9 ]
Jr. Member
RankRank
Total Posts:  37
Joined  2007-09-29

please could you tell me, when will you add this feature?

Profile
 
 
Posted: 13 February 2008 08:01 AM   [ Ignore ]   [ # 10 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3232
Joined  2006-10-18

Qrat,

When this feature is available, you will be one of the first to know about it smile

 Signature 
Profile
 
 
Posted: 12 April 2008 11:43 AM   [ Ignore ]   [ # 11 ]
Jr. Member
RankRank
Total Posts:  37
Joined  2007-09-29

any movements? ))

Profile
 
 
Posted: 14 April 2008 07:00 AM   [ Ignore ]   [ # 12 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3232
Joined  2006-10-18

Qrat… unfortunately, not yet…

 Signature 
Profile