Decorations are preset appearance settings for modules and layouts. Decorations are used to reuse settings such as colour, margins, or custom style sheets.
The advantages of using a decoration is that it is easy to maintain and manage. For example, if you want to change the look of the website after a year. If you have used the decorations every time you have used a background tile, simply make the change in one place, it is then applied to all the places where the decoration is used. If you have instead made these background tiles manually or copied them, you must change all the places where they are used. Management is then also easier when you use the decorations because not as many layouts are used under Content.
A decoration is a saved setting (of appearance and margins) for a module or layout. Requires that you have Manage website layout permission to make a change to a saved decoration. It is also possible to change the name of the decorations. Under the Decorations tab you will see all the decorations that are on the website.
There are two ways to create decorations:
A decoration template is a saved setting on multiple modules or layouts. Here you can add that decoration templates can be used by the editors (once created under decoration templates) and it is possible to rename them. However, if you want to change the contents of decoration templates, you must have the View decoration templates permission to switch to that view.
You cannot delete a decoration once it is added to the website.
This function requires you to have "Manage decorations" permission.
A CSS rule is a CSS that is linked via custom add-on in head or custom add-on in the CSS file. You can also declare your own CSS rules here under this setting, instead of making custom add-ons in the CSS file. After adding the CSS rules to the website, the editors can mark up modules and layouts with them. Changing a decoration applies the change to all pages that use the decoration.
After adding the CSS rules to the website, the editors can mark up modules and layouts with them. To use a CSS rule, right-click on the module and select Properties -> Appearance ->Style (CSS).
To add a CSS class name, click on the Add CSS rule link below the list.
You cannot delete a CSS rule once it is added to the website.
This function requires you to have "Manage website settings" permission
The page published: 2019-03-01