The extension allows creating root-page aware content in Contao.
Choose the installation method that matches your workflow!
Search for terminal42/contao-rootcontent
in the Contao Manager and add it
to your installation. Apply changes to update the packages.
Add a composer dependency for this bundle. Therefore, change in the project root and run the following:
composer require terminal42/contao-rootcontent
Depending on your environment, the command can differ, i.e. starting with
php composer.phar …
if you do not have composer installed globally.
Then, update the database via the contao:migrate
command or the Contao install tool.
There are multiple features to create root-page aware content.
The extension allows to create articles in the root page. Here's how it works:
- Edit your theme and add custom content sections. Each theme can have multiple sections with root content.
- Add an article to a root page. Contrary to regular articles, you cannot enter a name but select one of the sections from your theme.
- Create a root-content module in your theme and select the section you want to output.
- Place the new module anywhere in your page layout.
For each front end module, there is a new setting to limit it for one or multiple root pages. This way you can create language-aware modules. Simply place all of them in your page layout and only the respective ones will be rendered one at a time.
Add css classes to the root page and they will be inherited through all pages.