You’ve stored HTML for the menus in a channel entry?
This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.
The active forums are here.
August 11, 2014 11:53pm
Subscribe [2]#16 / Aug 15, 2014 8:45am
You’ve stored HTML for the menus in a channel entry?
#17 / Aug 15, 2014 5:12pm
Yes, It has worked in the past and seems to work now.
#18 / Aug 16, 2014 9:59am
Except it doesn’t on the single entry pages..😉
The short answer to why that is happening is the dynamic property of EE. You can learn more here:
http://www.train-ee.com/courseware/free-tutorials/comments/dynamic-off-explained (just change the weblog terminology for channels).
Adding “dynamic=“no” to your channel entries tag for the menu channel should get the code to load on the single entry page.
The longer answer/question is why are you using channels - which are designed to hold content - for front-end code? You are adding more queries to each page by doing so, for not many advantages. The better / more common approach would be to put the menu code in a snippet instead.
Overall if you use channels for content and templates/snippets for front-end code you’ll be better off with fewer queries required per page and a more distinct separation between where your markup is kept and where your content is kept.
#19 / Aug 16, 2014 11:21pm
The manuals explanation of snippets is not very good. I went to your site and a few other and now I have changes from channels to snippets for the menu and footer. Thanks! Now all I have to do is figure out how to make comment form and comments work on the same page as the article.
#20 / Aug 17, 2014 7:19am
Glad to hear you got snippets sorted.
I have some content on Train-ee that covers comment forms as well.