AS OF 1.1.0, SHOWME IS NOT NEEDED AS MOJOMOTOR NOW CAN EMBED LAYOUTS!
ShowMe’s purpose is to allow developers to create MojoMotor templates with much more ease by allowing layouts to show other layouts, pages, and page’s content. And the best part? ShowMe’s free!
Let me give you two scenarios of where ShowMe shines.
Scenario 1
You need to have many different layouts, but each of these layouts will have the exact same header and footer. The person who hired you might need to edit the header and footer occasionally. Before, he’d would have to edit every single layout to change the header and footer.. but no more! With ShowMe, you can easily have a global header and footer layout, and load them onto your layouts.
Scenario 2
You wish to have an Archived Articles page, where you store all the content of your old articles, all in one. You don’t want to copy and paste all of your old article’s content onto the new Archived Articles page… so instead, you can use ShowMe to display the content of the pages!
Installation
First, you need to download ShowMe. Once downloaded, upload the show folder to:
MojoMotor/system/mojomotor/third_party/
And that’s it!
Syntax
To load a layout, you can do:
{mojo:show:layout name="header"}To load a full page (page’s layout + content), you use:
{mojo:show:page name="my_article"}And lastly, to load just a page’s content, you can do:
{mojo:show:page_content name="my_article"}—
Download link doesn’t work? Use the mirror.