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