Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Excerpt

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: 

Image Added


Use Case

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 an HTML Snippet widget or a Static Content widget, then  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.  

...

You can find Layers under the Advanced Content menu in the CMS.


 

How To Create a Layer

  1. In the CMS, navigate to Advanced Content → Layers
  2. Click 'Add New Layer'.
  3. Give your new layer a Name and a Description; anything that's meaningful to you.
    Image Added

...

  1. 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

...

  1. Personalisation here!)
    Image Added
  2. Click 'Save & Exit
  3. Your new layer is now ready to use! Add it to any widget on your site - it's that easy.
    Image Added