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.

Embedded template doesn't display

May 08, 2011 9:58pm

Subscribe [3]
  • #1 / May 08, 2011 9:58pm

    imolta

    11 posts

    Hi there,

    We’re trying to use an embedded template to display entries in a conditional. The template works fine when embedded elsewhere, but not in this conditional. Can anyone tell me what we’re doing wrong?

    The conditional:

    {exp:channel:entries channel="blog|default_site"}
                    {if include-callouts == "p-callout-on" OR blog-callouts == "b-callout-on"}
                    {embed="site/callouts"}
                    {/if}
                {/exp:channel:entries}

    The embedded template:

    {exp:channel:entries channel="callouts-channel" sort="asc" limit="4"}
        <div class="column-callout">
            <a href="http://{callout-redirect}" title="{title}" target="_blank" rel="noopener">{callout-image}</a>
        </div>
    {/exp:channel:entries}

    The debugging output that I’m guessing is relevant:

    (0.231384)    Parsing Segment, Embed, and Global Vars Conditionals
    (0.231414)    - Beginning Tag Processing -
    (0.231436)    Parsing Tags in Template
    (0.231457)    Tag: {exp:channel:entries channel="callouts-channel" sort="asc" limit="4"}
    (0.231518)    Closing Tag Found
    (0.231552)    Processing Tags
    (0.231577)    Module Tag: Channel/entries
    (0.231589)    Including Files for Plugins and Modules
    (0.231598)    Files for Plugins and Modules All Included
    (0.231606)    Beginning Final Tag Data Processing
    (0.231616)    Calling Class/Method: Channel/entries
    (0.231743)    -> Class Called: Channel
    (0.231781)    -> Method Called: entries
    (0.239085)    Returning No Results Content
    (0.239138)    -> Data Returned
    (0.239169)    - End Tag Processing -
    (0.239225) - End Template Processing -
    (0.239231) Parse Global Variables
    (0.244691) Template Parsing Finished

  • #2 / May 09, 2011 6:05am

    John Henry Donovan

    12339 posts

    imolta,

    In your embed can you add the parameter dynamic=“no” please and try again

    {exp:channel:entries channel="callouts-channel" sort="asc" limit="4" dynamic="no"}
  • #3 / May 09, 2011 2:37pm

    imolta

    11 posts

    That fixed it, thank you.

  • #4 / May 09, 2011 2:44pm

    Sue Crocker

    26054 posts

    Glad John was able to help. Don’t hesitate to post again as needed.

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

ExpressionEngine News!

#eecms, #events, #releases