Addon Info

Developer: Conflux Group, Inc.

License: View

$7.00

Pieces

A MojoMotor addon allowing users to include layouts inside of other layouts.

MojoMotor Version 1.1.0

Since version 1.1.0, MojoMotor now supports embedding of layouts natively, and the Pieces addon is no longer needed. We are keeping Pieces available for the time being to support legacy installations of MojoMotor.

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.

 

All of the functionality of the Minors addons can be accessed through the layout 
template tag:
 
{mojo:minors:layout name="header"}
 
There is only one parameter, name, which is used to specify the name of the layout you
want to include.