Published by Mijingo

movie icon image

EE Insider Blog

Spend your time learning and developing sites with ExpressionEngine and we'll use this blog to keep you informed of all the news related to ExpressionEngine and CodeIgniter.

» Read more in the Archives.

» Have a tip? Send us your EE news.

Learn ExpressionEngine Today

Over a series of 8 videos, watch and learn as Ryan builds an entire ExpressionEngine website from beginning to end. Get started now.

How To: Template “Partials”

John Dwells wrote a how-to on creating template “partials” functionality to solve a problem that I’m sure has plagued most of us in developing ExpressionEngine sites.

The problem is that using embeds to pass content from one template to another works well enough, but it comes at a price of extra overhead to EE and plenty of potential for extra complexity for your templates.

I love the idea of using a plugin to solve this problem. John’s how-to describes an excellent way to do this and make your templates a lot easier to work with and definitely more elegant. John’s code examples are fantastic, and he walks you through the whole process very well. Plus, if you’ve ever wanted to roll your own plugin, then this is a great way to get started, too.

Check it all out at JohnDwells.com: Homegrown plugin to create template “partials” for ExpressionEngine

Posted on Jan 10, 2011 by Brian Warren

Filed Under: Development Tools, EE Add-ons, EE Plugins