Hi,
There is so many ways to handle header and footer. What is your “way to go” with these?
Does it have performance related issues if you use snippets, but not actual embedded templates? I don’t want to use / learn to use layouts because I fear I run into problems with addons when using layouts.
So, embed template better than snippets?
Would love to hear more on how you think the best way for these
thanks
Why not try coding them in the different ways and seeing what the performance is on your site? 😉
Do you hate me that much eh? But seriously, i do not know how things get parsed and in what order etc. so that is the reason why I asked this.
Almost bought your book because EE is like Photoshop, more you study, more you learn, if you just know how to learn 😉
Here’s the ExpressionEngine Parse Order: http://loweblog.com/downloads/ee-parse-order.pdf
But that rarely comes up unless you are doing some extraordinary things in your site.
Usually if you’ve already chunked out a header and footer it’s a pretty simple matter to turn on the output profiler, make a copy of a live template, copy a header embed into a snippet, change the test template to use the snippet instead, and test the template.
Performance is often very dependent on your specific EE build and environment - the gains you might see may not be worth the work of changing your code base.
In general I just like to encourage experimentation…too often we get bogged down waiting for input when the quicker and better idea is to just try a bunch of stuff and see what works.
In general I just like to encourage experimentation…too often we get bogged down waiting for input when the quicker and better idea is to just try a bunch of stuff and see what works.
I agree with that one.
I just closed my 11 year old community site, deleted all, members, content, forum with over 70k images and am starting from zero. This was the time to do something really heavy because social media stolen photo-based communication and image sharing totally in the last 3 years.
So, I have to re-create my site and idea with fresh things. Why I did delete content? Ok, database was a mess(because of beta addon tests for example), member accounts had ghost data from the past, forum threads were non readable due to account deletions during its life, forum had attachments that were not deleted in the past due to EE bug(fixed since) and so on.
Now I want to make the back end work as well as I just can. (been with EE since 2007 but havent actually never really read and learned the things that does matter). I have set the deadline to me, because without it I just read, test, read and test and nothing gets done LOL.
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.