Tag name on tag entries page
Posted: 06 January 2008 08:26 PM   [ Ignore ]
Newbie
Rank
Total Posts:  4
Joined  2008-01-06

I created a link to the tags on a post and created a new multi entry page template to display the tagged results.  The problem is I want to put a header on the page that has {tag_name} but I am not sure how I can gather that information without using url segments (which i am using web safe ones so that wouldn’t display well).

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

You could use the {segment_3} variable, along with a String Replace… try this: (you’ll have to allow PHP on the template)

<?
$text
= <<<ENDHERE
{segment_3}
ENDHERE;$text = str_replace("+"," ",$text);

echo
$text;
?>

Or, if you don’t want to use PHP, you could try the Replace String plugin:
http://expressionengine.com/downloads/details/replace_string/

Haven’t tested that plugin, but it’ll probably work as well smile

 Signature 

Check out the new Solspace Blog!

Profile
 
 
Posted: 07 January 2008 08:14 AM   [ Ignore ]   [ # 2 ]
Newbie
Rank
Total Posts:  4
Joined  2008-01-06

There is no easier way to do this without a third party module or php?

Profile
 
 
Posted: 07 January 2008 08:17 AM   [ Ignore ]   [ # 3 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3717
Joined  2006-10-18

No, currently there is no existing feature for such, although, I do agree with you on it being a feature that should exist.

I will submit this as a feature request. smile

 Signature 

Check out the new Solspace Blog!

Profile
 
 
Posted: 10 January 2008 11:12 AM   [ Ignore ]   [ # 4 ]
Jr. Member
RankRank
Total Posts:  45
Joined  2005-04-24

You could use the Find and Replace plugin from Lodewijk - it’s an excellent plugin that has been around for a long time.  You’d use that in combination with the segment.

Profile
 
 
Posted: 10 January 2008 12:42 PM   [ Ignore ]   [ # 5 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3717
Joined  2006-10-18

Never even thought of that… thanks for the suggestion smile

 Signature 

Check out the new Solspace Blog!

Profile
 
 
Posted: 10 January 2008 04:09 PM   [ Ignore ]   [ # 6 ]
Jr. Member
RankRank
Total Posts:  37
Joined  2006-12-07

I was just working on the same problem - showing the tag name with the entries tag.

My suggestion is to create the equivalent of the EE category_archive tag. List entries organized by tag - like this:

Tag 1
- entry 1
- entry 2
- entry 3

Tag 2
- entry 1
- entry 2
- entry 3

etc…

That would be great.

Profile
 
 
Posted: 11 January 2008 07:04 AM   [ Ignore ]   [ # 7 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3717
Joined  2006-10-18

Nice suggestion. I will add it as a feature request smile

 Signature 

Check out the new Solspace Blog!

Profile
 
 
Posted: 19 January 2008 05:36 AM   [ Ignore ]   [ # 8 ]
Newbie
Rank
Total Posts:  1
Joined  2007-11-26

Oh… this isn’t implemented yet? I’m tried to get this done, but no success. Know I know, why :/ Please include this asap.
I’m using also a list to show all entries for a tag. I need a headline wich is i.e: All entries for tag: “{tag_name}“

Thank you

Stefan

Profile
 
 
Posted: 19 January 2008 10:29 AM   [ Ignore ]   [ # 9 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3717
Joined  2006-10-18

If you’re in a rush, I’d suggest you use one of the suggested methods above smile

 Signature 

Check out the new Solspace Blog!

Profile
 
 
Posted: 22 February 2008 07:34 PM   [ Ignore ]   [ # 10 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3717
Joined  2006-10-18

This feature has been added to the latest version of Tag!

 Signature 

Check out the new Solspace Blog!

Profile
 
 
Posted: 29 February 2008 09:44 AM   [ Ignore ]   [ # 11 ]
Newbie
Rank
Total Posts:  4
Joined  2006-11-16

Thank you so much for adding that feature. Really saved me some precious time.

For reference, so others don’t have to find and then dig around the release notes and then head over to digging around the documentation, folks, what you need is the Tag Name tag pair. Documentation is here:

http://www.solspace.com/docs/entry/tag_21_tag_name/

Pie Man, I know it’s a bit of extra work, but when you post “This feature has been added to the latest version of Tag!“, can you link to the documentation that explains the new feature? I think that would save a lot of people needless hunting through version release notes wondering if a new feature mentioned there is the new feature that they’re trying to find, and then heading over to the documentation to confirm or deny their wonderings.

Profile