Hi everyone,
Still working with EE 2 as that is what I’ve been working with for the last while trying to get a website up and running for a non-profit.
Basically, I am working on the blog/news portion of the website and I want to be able to make one template that houses the look of each individual post.
I may have missed it in my review of the docs so any help would be great.
Right now, I have the channel entries loop and then my HTML inside that.
{exp:channel:entries channel="blog" orderby="date" sort="desc" limit="10" paginate="bottom" dynamic="no"}
... HTML ...
What I want to do is put an embed in for the blog post template so that when I make changes to it, it will adjust no matter where someone is on the blog whether it be archives, search results, and so on.
If I can put the embed in, does it automatically recognize the tags from the channel entries?
It does not automatically recognize the tags from a tag in the calling template, but there are a couple of things you could do:
1.) Have the whole {exp:channel:entries} tag in your embedded file. If you need different parameters you could either pass them on to the embed, or perhaps make use of url segments.
2.) You should probably give Layouts a try. I think they might be the best solution in your case.
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.