Tag name in Title
Posted: 16 February 2008 06:55 PM   [ Ignore ]
Newbie
Rank
Total Posts:  4
Joined  2008-02-16

Hello,

I just bought the module through the EE store and am confused. I want to know how:

1. How do i output an entries associated tags to the tittle tag?

2. How do I filter for the specific tag name in the title tag when a user clicks on a tag link?  i.e.

www.mycooldomain.com/tags/macbook+air/

How do I display the MacBook Air tag name in the <title> like here: http://macitt.com/tag/macbook air

Thank you!

Profile
 
 
Posted: 17 February 2008 03:04 PM   [ Ignore ]   [ # 1 ]
Newbie
Rank
Total Posts:  4
Joined  2008-02-16

Is it that hard? or is it currently unsupported? Anyone… Anyone… Pretty please?

Profile
 
 
Posted: 18 February 2008 11:39 AM   [ Ignore ]   [ # 2 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3717
Joined  2006-10-18
Ric - 16 February 2008 06:55 PM

1. How do i output an entries associated tags to the title tag?

I’m not sure I understand what you’re looking for, but have a look at the Tag 2.0 Tags Documentation
The following code outputs the Tags related to that entry:

{exp:tag:tags entry_id="{entry_id}" type="weblog" backspace="2" orderby="clicks" sort="desc" limit="10"}
<a href="{path='tags/tag'}{websafe_tag}" title="{tag_name}">{tag}</a>,
{/exp:tag:tags}

Ric - 16 February 2008 06:55 PM

2. How do I filter for the specific tag name in the title tag when a user clicks on a tag link?  i.e.
www.mycooldomain.com/tags/macbook+air/ !

The above example is a method in which you might generate the links. When those are clicked, it will create the URL and that page (template) will load all entries with that Tag name.

Note: The path=‘tags/tag’ part should be set to an existing template, or you should create a template called ‘tags’.
Be sure to keep the ‘tag’ part in the path, although it is NOT a template - only a URL keyword to trigger the Tag:Entries loop.

Your ‘tags’ template should follow the guidelines of the Tag 2.0 Entries documentation for you to show a result page.

Ric - 16 February 2008 06:55 PM

How do I display the MacBook Air tag name in the <title> like here: http://macitt.com/tag/macbook air

This is currently not a feature, although in the next release of Tag 2.1 (which will be very soon), will have this ability.
Until then, here’s a couple workarounds:
http://www.solspace.com/forums/viewthread/509/

Let me know if you have any further questions smile

 Signature 

Check out the new Solspace Blog!

Profile
 
 
Posted: 18 February 2008 05:47 PM   [ Ignore ]   [ # 3 ]
Newbie
Rank
Total Posts:  4
Joined  2008-02-16

Thank You Pie Man! I implemented all the tags you specified and got the results I wanted. Im using the Find and Replace plug-in and it rocks! Can’t wait for 2.1. Thanks again!

Profile
 
 
Posted: 22 February 2008 07:35 PM   [ Ignore ]   [ # 4 ]
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: 22 February 2008 08:43 PM   [ Ignore ]   [ # 5 ]
Newbie
Rank
Total Posts:  4
Joined  2008-02-16

Awesome! You guys rock!

Profile