Pulling tags across URLs with Multiple Site Manager
Posted: 09 May 2008 07:52 PM   [ Ignore ]
Newbie
Rank
Total Posts:  6
Joined  2008-05-09

I am currently using the following code with great success on one URL to manage tags scross multiple blogs:

{exp:tag:related_entries entry_id="{entry_id}"  dynamic="off" limit="5"}

<p><a href="{path={weblog}/story/{url_title}}">{title}</a></p>
{/exp:tag:related_entries}

I am now using Multiple Site Manager and my goal with the sites, was to have them be able to pull similar articles across all of the sister sites.

I tried simply adding: site="default_site"

like this:

{exp:tag:related_entries entry_id="{entry_id}" site="default_site" dynamic="off" limit="5"}

<p><a href="{path={weblog}/story/{url_title}}">{title}</a></p>
{/exp:tag:related_entries}

but it does not pull tags from the other sites. 

Ideally, I need to have the similar article from another site pulled and simply clicked on to bring you to that site, blog and proper article page.  Ultimately, it would be spectacular to not only have the link but even list the name of the sites the similar articles reside on, like this:

Similar articles across sites:

Site 1:
article 1
article 2

Site 3:
article 1

Site 7:
article 1
article 2
article 3
article 4

Any suggestions on either code would be fantastic!

Profile
 
 
Posted: 11 May 2008 06:19 PM   [ Ignore ]   [ # 1 ]
Newbie
Rank
Total Posts:  6
Joined  2008-05-09

Hey anyone out there? 

After numerous attempts at nearly everything, and hitting up the EE forums, I tried something crazy, like placing site_id="7".  Interestingly enough, the site=, and the site_id seem to have no consequence on the page at all.  To test this I placed site_id="7", and there are only 2 sites.  The results didn’t change.  It pulls similar tags from only within the site it is being used.

I’m still trying to pull across URL’s using multiple site manager.  Ironically, my entire reason behind going with EE was because I could use Tags and use MSM for this purpose.  Any help would be greatly appreciated!

Profile
 
 
Posted: 12 May 2008 06:42 AM   [ Ignore ]   [ # 2 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  1685
Joined  2006-10-18

creative coalitions,

Can you see if this works for you:

site="default_site|site2|site3|etc"

It works for me - it will load ALL entries across all specified sites in one loop, but when I tried testing with only one site (other than the default_site) it doesn’t load any entries, which is obviously a bug. smile

Let me know if the above code works for you.... though either way this is a bug.
I will queue it up for the next release smile

Thanks for catching this!

 Signature 
Profile
 
 
Posted: 12 May 2008 07:37 AM   [ Ignore ]   [ # 3 ]
Newbie
Rank
Total Posts:  6
Joined  2008-05-09

No, I’ve tried this:

site="deafult_site|site1" with no luck at all.  I’ve tried that on both sites, the original, and the new one.

I have been able to access the other site by placing {exp:weblog} tags surrounding the code above.  Then however, it does screwy things and lists multiple instances of the same related articles.

OK so the next question, how often do you do releases for items such as this.  This was my entire reason for buying Solspace and even Expression Engine.

Thanks,
Scott

Profile
 
 
Posted: 12 May 2008 08:45 AM   [ Ignore ]   [ # 4 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  1685
Joined  2006-10-18

Scott,

It could be a few weeks…
If you need a refund, please let me know: support AT solspace.com

I apologize for the inconvenience…

Surrounding the Related:Entries loop with the Weblog:Entries loop will definately cause the issue you describe above. There’s no way around that…

So to confirm, this is the code I’m testing with (with an Entry ID in the URL):

{exp:weblog:entries}
<p>{title}</p>
<
p>{body}</p>
{/exp:weblog:entries}

<p>Related:</p>
{exp:tag:related_entries entry_id="{entry_id}" dynamic="off" limit="25" site="default_site|site2"}
<p><a href="{path=pizza/pants/{url_title}}">{title}</a></p>
{/exp:tag:related_entries}

Also, where are you running this template through? The regular index.php location, or a “clone” in another directory for a second or third site? smile
I’m also assuming you’re using Tag 2.1.1 and the latest version of ExpressionEngine?

 Signature 
Profile
 
 
Posted: 12 May 2008 01:43 PM   [ Ignore ]   [ # 5 ]
Newbie
Rank
Total Posts:  6
Joined  2008-05-09

Yes, that’s the code I’m using.  I don’t need a refund, as it at least works on a per-site basis, just not across sites.

Profile
 
 
Posted: 13 May 2008 06:08 AM   [ Ignore ]   [ # 6 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  1685
Joined  2006-10-18
creative coalitions - 12 May 2008 07:37 AM

No, I’ve tried this:

site="deafult_site|site1" with no luck at all.

I’m curious if the spelling of ”deafult_site” is a spelling error here, or in your code?

Thanks smile

 Signature 
Profile
 
 
Posted: 15 May 2008 01:28 PM   [ Ignore ]   [ # 7 ]
Newbie
Rank
Total Posts:  6
Joined  2008-05-09

sorry, spelling error here.

Profile
 
 
Posted: 16 May 2008 07:23 AM   [ Ignore ]   [ # 8 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  1685
Joined  2006-10-18

Scott,

I cannot duplicate your issue “exactly”, but have duplicated it in a sense, so regardless, the issue is not working correctly, and is queued for a fix for the next release of Tag smile

Thank you for your patience wink

 Signature 
Profile
 
 
Posted: 16 May 2008 07:27 AM   [ Ignore ]   [ # 9 ]
Newbie
Rank
Total Posts:  6
Joined  2008-05-09

Thanks for the update.

Profile