So I’ve built this site that is kind of a dumbed down webpage builder in ExpressionEngine. It all works great, but there’s this one area that isn’t working as I want. Here’s what I have going:
Layout Template:
{exp:channel:entries entry_id="1" limit="1"}
{embed="classic/navigation"}
{/exp:channel:entries}
and then inside the embedded template classic/navigation we have
{exp:channel:entries entry_id="3" limit="1"}
<nav id="classic-header" class="navbar navbar-default navbar-expand-sm" role="header" >
...
</nav>
{/exp:channel:entries}
that all works well, but if I replace the entry_id="1"
and entry_id="3"
with channel="site_setting"
and channel="navigation"
respectively, and leave the limit="1"
, it doesn’t embed the template any longer. I even have the channels limited to only allow 1 entry. But the weird thing is, i use the exact same layout and everything on the homepage and it works fine using channel names instead of entry ids. This only breaks on the interior pages. Any advice is appreciated. Kind of new to EE. I would just leave it since it’s working, but I”m trying to make it more modular and calling out specific entry_ids doesn’t give me that modularity. Thanks for any input.
sorry that was so wordy. Maybe easier to understand like this. Ideally i’d prefer this below instead of what’s above
Layout Template:
{exp:channel:entries channel="site_setting" limit="1"}
{embed="classic/navigation"}
{/exp:channel:entries}
Embedded template classic/navigation:
{exp:channel:entries channel="navigation" limit="1"}
<nav id="classic-header" class="navbar navbar-default navbar-expand-sm" role="header" >
...
</nav>
{/exp:channel:entries}
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.