Engine Builder
Article and category layouts
Design how Joomla articles and category blogs look with Engine Builder, and choose which articles and categories use each layout.
An article layout replaces how Joomla shows a single article. A category layout replaces how Joomla shows a category blog. You design both in the Engine Builder editor, with special elements that fill in the article or category being viewed.
What you need
Layouts are shown by the Engine template's overrides for Joomla articles and category blogs. With an Engine template they work straight away. Other templates can copy the Engine template's two small override files (html/com_content/article/default.php and html/com_content/category/blog.php).
Pages that use a layout are shown at full width by the Engine template.
Make an article layout
- Go to Components > Engine Builder > Templates.
- Press New article layout.
- Build the layout. The Article group of elements comes first:
- Article title
- Article image
- Article details (date, author, category, reading time, views, last updated)
- Article content
- Article tags
- Previous / next
- Add anything else you like around them: a heading band, a newsletter box, a Posts element set to Related articles (article layouts).
- Open the Page tab, choose where the layout is used, and press Save.
Make a category layout
- In Templates, press New category layout.
- Add a Category title element (it can show small text above and the category description).
- Add a Posts element and set Show to The articles of the category being viewed (category layouts). Switch on Page numbers to show pagination.
- Choose where the layout is used in the Page tab and press Save.
Category layouts apply to menu items set to Category Blog. Joomla's own blog settings, such as articles per page and order, still apply.
Preview with
While you design, the layout elements need an article or category to show. In the Page tab, Preview with picks one:
- For article layouts: The latest article, or any article from the list.
- For category layouts: The category with most articles, or any category.
This only affects the editor.
Where it is used
Use for in the Page tab has three choices.
For article layouts:
- Every article
- Articles in the categories ticked below (with Include sub-categories)
- Pages of the menu items ticked below
For category layouts:
- Every category blog
- The categories ticked below (with Include sub-categories)
- Pages of the menu items ticked below
When your site has more than one content language, Language limits the layout to one language.
When several layouts match, the most specific wins: ticked menu items, then ticked categories, then every article or category blog.
The Templates list shows the rule in the Where it shows column, for example "1 category and their sub-categories".
Dynamic tags in layouts
Text in a layout can use dynamic tags such as {{post.title}}, {{post.author}}, {{post.readtime}} or {{field.NAME}} for a Joomla custom field. They are filled in for the article being viewed.
Switch a layout off
Use Switch off in the Templates list, or set Status to Off (hidden on every page) in the editor. Joomla then shows matching articles with the template's normal layout again.