Documentation Center

Configuring Context-Aware Skins

The context-aware skin's decision as to which skin to give each individual user is driven by the XQuery script, which is run when the user first arrives at the site, and a second time if the user decides to log in to the site.

Before you begin

You must have Develop app permissions.

About this task

The XQuery script has two functions:
  • Sets the lc.skin session attribute, which will be intercepted by the rest of the application and determine its users.
  • Sets the audit.lc.skin session attribute to TRUE if this skin selection should be included in the user's audit trail.

Procedure

  1. The base skin includes the most basic XQuery script for context-aware skins. Copy the skin_select.xql file from LiveContent_home/db/LiveContent/ui/skins/base/xql/ into the same location within your skin.
  2. Thoroughly examine the comments in the skin_select.xql XQuery script, as they suggest what variables are available and the required output of the query.
  3. Add conditional blocks to the script to set the skin to different values under different user contexts.