exp:tag:entries on multiple weblogs. 
Posted: 26 September 2007 08:40 AM   [ Ignore ]
Newbie
Rank
Total Posts:  6
Joined  2007-02-05

Hi,

I’m trying to set up Tags across multiple weblogs. I have quite a few. Each section of the site has its own weblog to keep the content organized.

I am printing my tag cloud like so:

{exp:tag:cloud weblog="actdeclaration|acteducation|actlinks|actprofiles|infoeducation|infofactsheets|inforesources|infothingsyou|lifefashion|lifequizzes|lifestuff|lifetop10lists" groups="5" start="6" step="2" limit="30"<a href="/tag/{tag_name}" style="font-size: {step}px;">{tag_name}</a{/exp:tag:cloud}

This works great, as far as I can tell.
Now, I don’t know how to set up the tag template that you are directed to when you click on a tag in the tag cloud.

Does the following make sense?

{exp:tag:entries weblog="actdeclaration|acteducation|actlinks|actprofiles|infoeducation|infofactsheets|inforesources|infothingsyou|lifefashion|lifequizzes|lifestuff|lifetop10lists" orderby="entry_date" marker="tag" sort="asc" limit="30"}
 
<h2>{tag} {title}</h2>
 
{body}
{
/exp:tag:entries}

I want to create listing of all entries tagged with a particular tag irrespective of the weblog it comes from. Can I do this?

Thanks,

Georges

Profile
 
 
Posted: 26 September 2007 09:53 AM   [ Ignore ]   [ # 1 ]
Jr. Member
RankRank
Total Posts:  45
Joined  2005-04-24

Yes, entirely possible.  I just posted my templates here, so you’re welcome to see how they work.

Profile
 
 
Posted: 26 September 2007 11:06 AM   [ Ignore ]   [ # 2 ]
Newbie
Rank
Total Posts:  6
Joined  2007-02-05

Cool, thanks for the link.

A couple of questions:

What is embed:pcheck and where is it coming from? I don’t follow…
And, where can I get Tag 2.0 ? LOL

Thanks again,

georges

Profile
 
 
Posted: 26 September 2007 11:22 AM   [ Ignore ]   [ # 3 ]
Jr. Member
RankRank
Total Posts:  45
Joined  2005-04-24

I explained embed:pcheck at the bottom of the entry.  You don’t need it - that code is simply a copy and paste of what *I’m* doing. You would be best to use just a straight weblog= parameter. 

As far as getting Tag 2.0 - I can’t answer that.  But you don’t need it if you are just calling multiple weblogs; it’s needed for my case as I’m calling tagged gallery entries. =)

[Edit] I got rid of the pcheck thing to make it clearer.

Profile
 
 
Posted: 26 September 2007 12:12 PM   [ Ignore ]   [ # 4 ]
Newbie
Rank
Total Posts:  6
Joined  2007-02-05

Ah ha, I see. Makes a lot of sense. I just did an assign_variable at the top of my tag template so I didn’t have to keep that huge long line of weblogs.

I got it working. I hadn’t sorted out my Tag preferences in the module control panel and so the tags that had been input weren’t showing up smile My bad.

Thanks for your template. It should totally be included in the official Tag docs. The current ones are woefully lacking in useful examples.

Profile
 
 
Posted: 26 September 2007 12:19 PM   [ Ignore ]   [ # 5 ]
Jr. Member
RankRank
Total Posts:  45
Joined  2005-04-24

I don’t think mine should be included, it is rather specific to my site, after all.  But thank you for the compliment, I’m glad that it helped!

I prefer to use path.php - that code is a bit modified from what is in my actual template.  The pcheck is actually a permission check to show information based on who is allowed to see it.  But you’re right in that it confused the question, so ditching it for the purpose of that post was a good idea. =)

Profile
 
 
Posted: 16 October 2007 10:37 AM   [ Ignore ]   [ # 6 ]
Newbie
Rank
Total Posts:  6
Joined  2007-02-05

And to ressurect an old topic…

Using the code above, how can I make a link to a specific entry since I won’t know what weblog is it originating from and thus I cannot put in the correct template in my {title_permalink="template/entry"}… How do I know it is “entry” and not “entry2” that i require? The only way I can think of is a huge if/else tree checking the {weblog_short_name} .

Thoughts?

Profile
 
 
Posted: 16 October 2007 11:16 AM   [ Ignore ]   [ # 7 ]
Newbie
Rank
Total Posts:  5
Joined  2007-10-05

I know that {comment_url_title_auto_path} helped fix an issue I had with a certain section. Might be what you are looking for.

Profile
 
 
Posted: 16 October 2007 11:24 AM   [ Ignore ]   [ # 8 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  702
Joined  2004-03-30

Iuse comment_url_title_auto_path heavily as well. It’s a very handy way of generating the right kind of link that respects the weblog.

mk

 Signature 

Mitchell Kimbrough

Profile