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.

Channel field not showing on page with embedded template using Multi-Site Manager

July 02, 2013 1:09pm

Subscribe [1]
  • #1 / Jul 02, 2013 1:09pm

    fiorejo1

    6 posts

    I am using ExpressionEngine 2.5.2 with Multisite Manager. I have one template embedded within another. The parent template is pulling data from 2 sites, and I would like certain information to show up depending on how many results there are from a channel:entries call. However, when one of the sites has results, the embed show correctly, but when the other site has results, the embedded template shows up, but the field results do not.

    Here is the parent template:

    {exp:channel:entries  site="default_site|characterized" orderby="entry_date" channel="events" sort="asc" status="next event|open" show_future_entries="yes"}
        {if total_results == "2"}
            {embed="home/side_bar_2" side_box_1_sm="{side_box_1_sm}" side_box_1_lg="{side_box_1_lg}" side_box_1_link="{side_box_1_link}"}
        {/if}
    {/exp:channel:entries}

    Here is the embedded template:

    {exp:channel:entries  site="default_site" orderby="entry_date" channel="home" sort="asc" status="open" show_future_entries="yes"}
        <a href="http://{embed:side_box_1_link}" target="_blank" rel="noopener">_        {embed:side_box_1_sm}_    </a>
    {/exp:channel:entries}

    When the “characterized” site has 2 results, the embedded template works just fine. When the “default_site” has 2 results, the embedded template shows up with no values in the channel fields. when I look at the source code, it just shows:

    <a href="http://" target="_blank" rel="noopener">_    ""/           _</a>

    Any ideas on why this is happening?

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

ExpressionEngine News!

#eecms, #events, #releases