EE Insider Tips
Sponsored by Mijingo's EE 2 Screencasts
ExpressionEngine mini-howtos created by the EE Insider community.
Create a “global” template group
To take advantage of EE’s flexible templating system, I use “sub-templates” for aspects of my design that are common across the site (e.g., header, footer, menus, copyright info).
To keep these organized, I’ll create a “global” template group that contains all of these templates. Of course, you can name the group whatever you want (e.g., “shared”, “embeds”).
Email
Print
Post to Twitter
Post to Delicious
Justin Long — 09:55 on 05.29.2009
This will save you loads of time if you need to change something in a common element. If you do not someone to be able to browse to just that template though you can add a period (.) to the beginning of the template name.
ie… http://example.com/global/.header would not show your header in the browser. Something I personally do on all of my “sub-templates”
Jason Morehead — 10:22 on 05.29.2009
Good point, Justin. I forgot to mention that, but it’s always a good idea to make your “sub-templates” hidden so that someone can’t accidentally see a portion of your design (e.g., a header or top menu).
mirkob — 15:21 on 06.02.2009
Good to know the period thing. I didn’t know it.
Add Your Comment?
You must have an EE Insider account to post comments on Insider Tips. It's fast, easy and hassle-free.
Sign up now (or login).