Layers are used by all widgets to filter or restrict the widget's content to a particular audience. A layer can be based on conditions such as the user's authentication status (logged in vs. public), their role, and/or their customer code, just to name a few.
If you've ever edited a widget in the CMS, you may have noticed the Layer selector on the General Options tab:
Let's imagine you have a banner image advertising an exciting promotion, but it only applies to your B2C customers. In this case, you'd place the banner on the page using a Static Content widget, then use a layer to restrict that widget to users on a B2C role. As a result, B2B users would not see the banner at all.
Best Practice Design websites come equipped with several standard Layers out of the box. You are free to edit, remove, or add to these Layers as required.
You can find Layers under the Advanced Content menu in the CMS.
How To Create a Layer
- In the CMS, navigate to Advanced Content → Layers.
- Click 'Add New Layer'.
- Give your new layer a Name and a Description; anything that's meaningful to you.
- Next, specify the conditions under which this layer will 'activate'. It could be for particular roles, accounts, or marketing flags, for example.
(For further information on layers and examples of use, see our blog post on Personalisation here!)
- Click 'Save & Exit'
- Your new layer is now ready to use! Add it to any widget on your site - it's that easy.
The widget will activate when the customer browses a particular page or pages.
Use the '*' wildcard to include all like pages, or exclude a page using '!'
|User Authenticated Status||Defines the layer based on Logged In users (Authenticated), Logged Out users (Anonymous), or Any user.|
|Role||Defines the layer based on the role of the user. You can include, or exclude any role from the list.|
A single account code, or a list of debtors from PRONTO that should be included (or excluded) from this layer.
|Bill-to Account||Similar to the Account option, this specifies a Bill-to Account filter, using an include or exclude|
|Catalogue||If your site uses Custom Catalogues, you can define a layer based on what catalogue the user is browsing. Specify the Global Catalogue, any Custom Catalogue, or a list of Custom Catalogues.|
There are several Customer fields integrated from PRONTO ERP that can be used to define a layer, including:
Any of the above can be done as a list (separated by commas), and can be set up to include or exclude the values supplied.
|Minimum Version Requirements|
|Ballpark Hours From CV (if opting for CV to complete self config component)|
Contact CV Support
|Ballpark Hours From CV (in addition to any self config required)|
Contact CV Support
|Third Party Costs|