Go Back

How to include one Layout code into another layout
Custom Tables

To include one layout code into another layout use {layout:name of the layout to insert} tag

Example:

{layout:Powered_by_JoomlaBoat}

{catalog:,notable}

The Included layout code and parent layout code will be processed as a single layout.

Works  as  the "include" method in other computer languages.

This helps to structure layouts.

The "Layout" tag takes all the text/code/markup that exists in the specified layout and copies it into the parent layout that uses the "layout" tag. Including layouts is very useful when you want to insert  the same Javascript, HTML, or text on multiple pages of a website.

At the moment, it doesn't support recursivity.

JoomlaBoat.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by Open Source Matters
the trademark holder in the United States and other countries.