Module

Developer
Supported

Bookmarks

ExpressionEngine 2, ExpressionEngine 3

Back to this add-on's main page
View Other Add-ons From Yuri Salimovskiy

     

You must be logged in to post.

Multiple Site Manager

Support Request

CharlottesvilleMedia
CharlottesvilleMedia

I’m using MSM to pull entries from site 1 into site 2 and want to allow visitors to bookmark those entries on site 2. This code works well on site 1 (it generates the “add bookmark” button) but I don’t get anything on site 2 (just “Site ID: 2”):

Site ID{site_id}

{exp
:bookmarks:check site_id="1|2" type="entry" data_id="{entry_id}" form="yes" return="SAME_PAGE"}

 {if not_bookmarked}
  
<input type="submit" value="add bookmark" />
 
{/if}

 {if bookmarked}
  
<input type="submit" value="remove bookmark" />
 
{/if}
 
{
/exp:bookmarks:check} 

Thanks for your help!

Yuri Salimovskiy
# 1
Developer
Yuri Salimovskiy

Try specitypin site_id parameter. site_id=“1” or site_id=“1|2” depending on what you want to achieve

CharlottesvilleMedia
# 2
CharlottesvilleMedia

Thank you for your response.

I tried all of those and changing the site_id parameter has no effect. However, the problem seems to be that Site 2 doesn’t recognize the bookmarks code. In Site 1, even if I specify a crazy site_id (e.g., 99999), it still generates an “add bookmark” button. However, no matter what I put in Site 2, it creates nothing—no “add bookmark” button. I do see Bookmarks listed as an add-on in both Site 1 and Site 2, however.