A Commercial add-on by Conflux Group, Inc.
A MojoMotor addon allowing users to include layouts inside of other layouts.
It’s so simple, it’s stupid.
Pieces only has one tag, but the flexibility it brings is useful. You’ll probably find Pieces is one of the most useful addons around.
Usage
All of the functionality of the Pieces addon can be accessed through the layout template tag:
{mojo:pieces:layout name="header"}
There is only one parameter, name, which is used to specify the name of the layout you want to include.
That’s all there is to it. Use Pieces to use global headers, footers, etc across your sites. And the best news is, all template tags inside your included layouts still get parsed.
There are no reviews for this add-on.
I'm particularly interested in how the body class is added when the mojobar is opened! That was one that was hard to get around in the past.
Feb 09, 2012 3:20am