Using profile.config to create a css class

It is possible to use profile.config <PresentationSettings> to create a css class on a page. The method can be used to create css rules specific to pages identified by triggers in <PresentationSettings>.

Version 4.5

The support to create custom css classes using profile.config is available in version 4.5 and later.

Create a class in profile.config

Adjust PresentationSettings according to below to create a class. In below sample the start catalogue is given label “start” in Manager to use a trigger to create a class catalogue-start-view. The same technique can be used to create css classes on any presentation page, using any of the triggers in PresentationSettings.

 

<PresentationSettings> <Settings> <!-- Start page identified by setting label "start" on that catalogue in Manager --> <Trigger label="start"/> <!-- This class will appear on start page --> <Class>catalogue-start-view</Class> </Settings> </PresentationSettings>

Css

The css will with the above settings get a class on the catalogue with label start.