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 related entries

July 17, 2007 3:31pm

Subscribe [2]
  • #1 / Jul 17, 2007 3:31pm

    Hi all,

    I’m using MSM and on a main site and I have a weblog of facility icons. So basically a title and icon field.

    Then on one of the secondary sites I want to be able to use these icons in a related field. This works fine, but for some reason images(maybe custom fields) aren’t working.

    Here is the ee template:

    {exp:weblog:entries weblog="facilities" rdf="off" dynamic="off" disable="trackback|pagination"}
    <div class="story insetLeft">
        
        {related_entries id="facility_badge"}{facility_icon}{/related_entries}
        <div>
    
            <h3><span>{title}</span></h3>
    
    <p>        {facility_summary}<br />
            <br />
        </div><br />
        <br />
        {if facility_detail}<a href="/about/facilities/detail/{url_title}" class="read">View Details</a>{/if}<br />
        <br />
    </div><!-- // story insetLeft --></p>
    
    <p>{/exp:weblog:entries}

    Here is the html output:

    <div class="story insetLeft">
        
        {facility_icon}
        
        <div>
        
            <h3><span>Restaurant</span></h3>
    
    <p>        The Four Seasons restaurant is pleasurable dining experience   <br />
     <br />
        </div><br />
                <br />
    </div><!-- // story insetLeft -->

    The image should be the related info, I even changed to a different icon (Pool) to see if the title (alt attribute on the image) changed ok, hhich it does. So maybe it’s not parsing the custom fields on related entries?

    Any help would be great!

  • #2 / Jul 17, 2007 3:35pm

    Lisa Wess

    20502 posts

    I don’t see any site= parameter on there.  So is “facility_badge” on a different site than the original entry?  Or are these all on the same site? If you can lay out how the MSM is involved here it would help a lot. =)

  • #3 / Jul 17, 2007 3:47pm

    Hi Lisa,

    I tried this, site=“group” being the default main site:

    {related_entries id="facility_badge" site="group"}{facility_icon}{/related_entries}

    But then the image disappears alltogether.

    To try and explain setup….

    Main site short name = group

    facility_icons weblog

    facility_icon - Text Input

    Secondary site short name = talbot

    facilities weblog

    facility_summary - Textarea
    facility_detail - Textarea
    facility_badge - Relationship

    Not sure if that is any clearer? lol

  • #4 / Jul 17, 2007 5:16pm

    Lisa Wess

    20502 posts

    Clear as mud. Just to let you know, I am looking into this. =)

  • #5 / Jul 18, 2007 9:27am

    Cool, hopefully we can fix this? 😊

  • #6 / Jul 19, 2007 10:15am

    Derek Jones

    7561 posts

    Steve, if you’d like to email (not PM) me, I can provide the fix for you in advance of the next build update.

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

ExpressionEngine News!

#eecms, #events, #releases