Help Please
Posted: 22 February 2008 03:56 PM   [ Ignore ]
Newbie
Rank
Total Posts:  9
Joined  2008-02-22

I think I am an idiot or maybe it is the lack of sleep.

I set up Tags and it installed great got a cloud up and everyhting.

but when you click on a tag it 404’s.

I guess I am missing templates. Are there any examples of what the default template for tags should look like? I searched the documentation and I don’t know maybe its my lack of sleep but i didn’t see anything.

Thanks in advance.

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

Haha, no it’s not a stupid question… it’s probably one of the most confusing things about the Tag Module.

Basically, your Tag Cloud should look something like this:

{exp:tag:cloud weblog="my_blog" category="favorite_category" 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}

What you have to make sure is that in your Path to the Tag, the structure works like this:

path=’tags/tag’

“tags” is an example Template Name. If you have the Tag:Entries page on a template within another Template Group, you’ll need to specify the Template Group as well… like this:

path=’template_group/tags/tag’

The “template_group/tags” part is the full path to the Tag Entries template

path=’tags/tag

The ‘tag’ part of the path is nothing more than a “trigger” in the URL to trigger the Tag:Entries loop.
So you should not have a template named ‘tag’ in this instance..... you can name it whatever you want, and use whatever path you want, but always keep the ‘tag’ part in the URL structure smile

Let me know if that makes sense LOL

 Signature 
Profile
 
 
Posted: 22 February 2008 07:16 PM   [ Ignore ]   [ # 2 ]
Newbie
Rank
Total Posts:  9
Joined  2008-02-22

I think I’m still confused. today isn’t my day.

http://www.hardwaregeeks.com/index.php/site/tempindex (Temp page while we work on our new design)
I have a cloud there with this code

{exp:tag:cloud weblog="default_site|apple|GeneralGeek|Microsoft" groups="10" step="3" limit="10" sort="asc"}
<a href="{path=tags/tag}{websafe_tag}" title="{tag_name}" style="font-size:{step}px;">{tag}</a>  
{/exp:tag:cloud}

I have a template called tags with the following code in it (Copy and Paste job from the manual for tag)

<div class="entry">
<
h3>Entries related by tag</h3>
{exp:tag:related_entries dynamic="off" limit="2" paginate="bottom"}
<h4><a href="{url_title_path=tags/entry}">{title}</a></h4>
<
div class="related">
<
h6>Related Entries</h6>
{related_entries id="related_field_name"}{title} - {summary}|{/related_entries}
</div>
<
div class="tags">
{exp:tag:tags entry_id="{entry_id}"}<a href="{path=tags/tag}{websafe_tag}">{tag_name}</a> {/exp:tag:tags}
</div>
<
hr />
{paginate}{pagination_links}{/paginate}
{
/exp:tag:related_entries}
</div>

But when you click one of the tags it doesn’t work
http://www.hardwaregeeks.com/index.php/tags/tag/amd

I know it’s probably something super simple, and I know that if I had some sleep in me and not dealing with the stress of a server crashing on me I could figure it out. and I’ll feel relaly silly if the solution is simple :(

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

Mike,

You’ll need to use the Tag Entries loop on your Tag page… not the Tag Related loop.

 Signature 
Profile
 
 
Posted: 22 February 2008 07:28 PM   [ Ignore ]   [ # 4 ]
Newbie
Rank
Total Posts:  9
Joined  2008-02-22

Ahh, tag related goes in the blog post it self right, that makes sense. I think I’m a hit the sack and when i wake up I’ll see if I can get it to work with Tag entries loop..

Thanks

Profile
 
 
Posted: 22 February 2008 07:34 PM   [ Ignore ]   [ # 5 ]
Newbie
Rank
Total Posts:  9
Joined  2008-02-22

I couldn’t wait for tomorrow, I got it to work

http://www.hardwaregeeks.com/index.php/site/tags/tag/canada

Gracias!

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

Nice! LOL

 Signature 
Profile
 
 
Posted: 22 February 2008 07:57 PM   [ Ignore ]   [ # 7 ]
Newbie
Rank
Total Posts:  9
Joined  2008-02-22

Now I just need to figure out how to have the entries link to their respective blog.

I have multiple blogs in differente template groups.

Profile
 
 
Posted: 22 February 2008 08:20 PM   [ Ignore ]   [ # 8 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3242
Joined  2006-10-18

Yeah, that does kind of screw you over there…

What I’ve suggested before is that you create a custom field to contain the path or part of the path to that template group… then, use that custom field in the Link structure and it’ll sort itself out smile

 Signature 
Profile
 
 
Posted: 22 February 2008 08:25 PM   [ Ignore ]   [ # 9 ]
Newbie
Rank
Total Posts:  9
Joined  2008-02-22

Yup it does. I guess I found a non bug lol.

Profile
 
 
Posted: 25 February 2008 02:54 PM   [ Ignore ]   [ # 10 ]
Newbie
Rank
Total Posts:  9
Joined  2008-02-22

well I couldn’t figure it out because you know I am slow.

But I did do this and it fixed the problem YAY so for those slow like me who can’t figure out the custom field link structure thing a ma jiggy try this
id == # is your blog id number

and after the = but before the /comments goes the template name.

<a href=”
{if weblog_id == 1}{title_permalink=default_site/comments}{/if}
{if weblog_id == 2}{title_permalink=apple/comments}{/if}
{if weblog_id == 3}{title_permalink=Microsoft/comments}{/if}
{if weblog_id == 4}{title_permalink=ggeek/comments}{/if}
{if weblog_id == 5}{title_permalink=GadgetBlog /comments}{/if}
{if weblog_id == 6}{title_permalink=GGaming/comments}{/if}
{if weblog_id == 7}{title_permalink=TechDeals/comments}{/if}
“>{title}</a>

Profile