For some reason I can’t get this to work in EE. It is a channel entries tag nested within another. The syntax appears to be ok.
{exp:channel:entries entry_id="{embed:pageid}" dynamic="no"}
...
<div class="subContent">
{exp:channel:entries channel="examples"}
<h3>{example_header}</h3>
{example_description}
<a href="http://{example_link}">{example_link_text}</a>
{/exp:channel:entries}
</div>
...
{/exp:channel:entries}Just keep an eye on how many queries are being generated - there are typically better coding approaches than nested entries loops.
Hi, I was wondering what the better coding approaches are?
What I’m trying to accomplish: I’m doing an art gallery site and the front page should have the current exhibition info on it. If there is no current exhibition, a different layout with text/images coming from a different channel should appear. Is there a better way than nesting channel entries than this do you think?
Thanks in advance!
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.