Hello helpful EE community, so I am working in EE7. Thanks for any help in advance.
WORKING
On the main template for the homepage (index.html) embedding hidden templates like {embed="website/_top"} works and renders the content just fine. Within the hidden template (_top.html) I can retrieve field contents from a channel like {exp:channel:entries channel="my_channel"} without a problem.
PROBLEM
But when embedding this very same hidden template (_top.html) in ANOTHER template (article.html) – in fact any other template than index.html – processing the {exp:channel:entries} in _top results in no data at all.
(As a side note: The hidden template is definitely being called from (article.html), which I tested with a single line of comment. But apparently the {exp:channel:entries} is not rendered. Also there are no user / access restrictions on neither the channel nor the templates.)
Thank you, Rob - that worked just fine!
For anyone visiting this thread with the same issue, here’s the documentation for the dynamic parameter.
So in my case I went into the hidden template _top.html and added dynamic="no" to my {exp:channel:entries ...} statement.
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.