ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

MSM Embed Issue

August 10, 2012 3:49pm

Subscribe [1]
  • #1 / Aug 10, 2012 3:49pm

    vaughn-taylor

    8 posts

    This question may be related to a resolved thread.

    I’ve looked at the documentation, and scoured the forum, but I can’t seem to resolve my issue. I’m using MSM and the two site short names are “blog” and “default_site”

    From default_site, I want to call a template from blog. This is what I have:

    {embed="blog:_widgets/_listing_ul" channel="blog" dynamic="no" limit="2" status="published|open" sort="desc" orderby="blog_entries_publish_date"}

    In the blog template _widgets/_listing_ul I have:

    <ul>
    {exp:channel:entries 
     channel="{embed:channel}" 
     dynamic="{embed:dynamic}"
     limit="{embed:limit}"
     status="{embed:status}"
     sort="{embed:sort}" 
     orderby="{embed:orderby}"
    }
    <li id="{url_title}" class="article-title"><a href="http://{lv_url_blog}/blog/{url_title}">{title}</a></li>
    {/exp:channel:entries}
    </ul>

    Is this choking because I’m passing parameters through the embed? On the blog side, I embedded this same template, and sure enough I get my unordered list. I just can’t seem to get it to appear on default_site.

    Thanks, Vaughn

     

  • #2 / Aug 10, 2012 4:11pm

    vaughn-taylor

    8 posts

    I resolved this by adding site to the embed from default_site:

    {embed="blog:_widgets/_listing_ul" site="blog" channel="blog" dynamic="no" limit="2" status="published|open" sort="desc" orderby="blog_entries_publish_date"}

    and to the channel entries tag in the blog template:

    {exp:channel:entries 
     channel="{embed:channel}" 
     dynamic="{embed:dynamic}"
     limit="{embed:limit}"
     status="{embed:status}"
     sort="{embed:sort}" 
     orderby="{embed:orderby}"
     site="{embed:site}"
    }
  • #3 / Aug 13, 2012 11:24am

    Lisa Wess

    20502 posts

    Hi, vaughn-taylor,

    I’m glad that you got this figured out.  You do, indeed, need to explicitly tell EE when you want resources from another MSM Site.

    If anything else comes up, please do let us know so that we can help out.

    Thank you!

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases