Problems with Tags and related entires
Posted: 12 December 2007 10:03 AM   [ Ignore ]
Newbie
Rank
Total Posts:  5
Joined  2007-10-01

OK I apologize for being a newbie....
I’ve searched the forums, tried suggestions and still can’t seem to pull in the correct responses.

Here’s what I am looking for:

I have installed Tag 2.0 and have multiple blogs running on one site as part of a coalition of writers.  I’d like to link related stories via tags.  So basically I am simply looking for a cut and paste code I can insert that will find related tags across all of my blogs and list the titles.  Then you can click on the title and be taken directly to that article.  Sounds simple, and I’m sure it is...but apparently not for me....

Thanks in advance

Profile
 
 
Posted: 12 December 2007 10:08 AM   [ Ignore ]   [ # 1 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3343
Joined  2006-10-18

{exp:tag:related_entries entry_id="{entry_id}" weblog="{my_weblog}" dynamic="off" limit="5"}
<a href="{permalink="template_group/template"}">{title}</a><br />
{/exp:tag:related_entries}

Just place that outside of your Weblog:Entries loop on a permalink page smile

 Signature 
Profile
 
 
Posted: 12 December 2007 10:15 AM   [ Ignore ]   [ # 2 ]
Newbie
Rank
Total Posts:  5
Joined  2007-10-01

What an incredibly fast reply!

So this is what I posted, but nothing shows.  I know there are tags there, when I used a sample tag cloud code, they show up....

{exp:tag:related_entries entry_id="{entry_id}" weblog="{news|adamwilt|mcpv|jfeeley|motiongraphics1}" dynamic="off" limit="5"}
<a href="{permalink="template_group/template"}">{title}</a><br />
{/exp:tag:related_entries}

I am sure I am missing something obvious huh…

Profile
 
 
Posted: 12 December 2007 10:17 AM   [ Ignore ]   [ # 3 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3343
Joined  2006-10-18

Haha, thank you,

You should remove the { } around the weblogs… wink
My example was using the default weblog variable LOL

 Signature 
Profile
 
 
Posted: 12 December 2007 10:22 AM   [ Ignore ]   [ # 4 ]
Newbie
Rank
Total Posts:  5
Joined  2007-10-01

Hmmm.  Still not working.  I just tried this across several of the blogs that I know have tags associated.  I also removed all of the blogs in the code except “news” to see if that made a difference.  Am I missing something else?

{exp:tag:related_entries entry_id="{entry_id}" weblog="mcpv" dynamic="off" limit="5"}
<a href="{permalink="template_group/template"}">{title}</a><br />
{/exp:tag:related_entries}

Profile
 
 
Posted: 12 December 2007 10:23 AM   [ Ignore ]   [ # 5 ]
Newbie
Rank
Total Posts:  5
Joined  2007-10-01

Does the Template group need to be replaced with something else?  Sorry, stupid question again.

Profile
 
 
Posted: 12 December 2007 10:25 AM   [ Ignore ]   [ # 6 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3343
Joined  2006-10-18

It does, but that will not affect results showing up…

Can you link to a page you currently have this set up on? smile
And your full code?

 Signature 
Profile
 
 
Posted: 12 December 2007 10:43 AM   [ Ignore ]   [ # 7 ]
Newbie
Rank
Total Posts:  5
Joined  2007-10-01

here’s the link....

http://provideocoalition.com/index.php/mcpv/comments/this_revolution_will_by_definition_be_televised/

my code is too large to paste here, and I tried to attached a .doc file and that didn’t work...suggestions?

Profile
 
 
Posted: 12 December 2007 10:46 AM   [ Ignore ]   [ # 8 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3343
Joined  2006-10-18

You can send me an email with the code or access to your CP…
kelsey AT solspace.com

 Signature 
Profile
 
 
Posted: 12 December 2007 11:18 AM   [ Ignore ]   [ # 9 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3343
Joined  2006-10-18

Just to conclude the results:

I moved the Tag:Related loop OUTSIDE of the Weblog:Entries loop as it should be.
I also removed the weblog parameter (it still wasn’t showing anything with just the “mcpv” weblog… probably because there was NO related entries from that weblog for that entry… so by removing the param, it’s a free-for-all. wink

I also added the Tag:Tags loop to it just for testing to see which tags were applied to the entry, if any.... which there was of course. smile

Related Entries showed at that point

 Signature 
Profile