...
To access the Authorization panel, navigate to Configuration > AuthorizationPersonalize.
In This Topic
Table of Contents | ||||
---|---|---|---|---|
|
...
An Editor can add personalization quickly and easily while editing an content item in the Editor. For complete information about personalizing content, see Personalizations.
...
Creating XSLT Expressions
...
- Navigate to Configuration > Personalize.
- Click the "XSLT Expressions" tab.
- Select <New expression> from the "Select" menu.
Define the following properties:
Property Description Category The category (if any) to which this expression belongs. Available Specifies whether this expression is available for use. Type The options are: - Condition: XPATH expression that generates 'true'.
- Choose: The same as 'Condition' but with a redirect to another page if the expression generates 'false'. The login page is the default.
- Select: An XPATH expression that retrieves information from an XML structure.
- XSL: An XSL template, for all other options.
Show links Selecting 'Yes' displays a protected page on the menu. For users with insufficient rights, this has no effect. The visitor will be redirected to the login page and will be able to access the desired page if he or she logs in. XSLT XSLT code (for type 'XSL') or XPATH expression (for other types). Examples:
Condition
/root/system/user/sex = '1'
(Verify that the visitor is male.)
Choose
count(/root/system/user/username) > 0 and (/root/system/user/username) = 'administrator'
(First, verify that the 'username' tag exists and then that the user is the administrator.)
Select
/root/system/user/firstname
(Retrieve the first name.)
XSL
<xsl:value-of select="/root/system/user/firstname"/>
<xsl:text > </xsl:text>
<xsl:value-of select="/root/system/user/lastname"/>
(Retrieve first name + space + last name.)Assigned to If this expression is used in one or more presentation models, the models are listed here. Test XSLT Tests the XSLT code to ensure that it is correct.
...
Combining Expressions in Personalizations
...
Define the following properties:
Property | Description |
---|---|
Name | The name of the model. |
Category | Specifies the category, if any, to which this personalization belongs. |
Available | Specifies whether this personalization is available for use. |
Operator | The operator to use. The options are AND and OR. |
Use NOT operator | Surrounds the entire expression with a NOT operator. |
Show links | Selecting 'Yes' displays a protected page on the menu. For users with insufficient rights, this has no effect. The visitor will be redirected to the login page and will be able to access the desired page if he or she logs in. |
Assigned expression | Displays the expression assigned to this personalization model. |
Total expression | The XSLT code of the combined expression. |
Test XSLT | Tests the XSLT code to ensure that it is correct. |
...
Usage
The Usage tab shows which XSLT expressions and personalization models are assigned to pages and page sections. The on the page that to which the expression or model is assigned also appears. When you click a page title in the list, XperienCentral navigates to that page or page section in the Editor.
...
Categories
On the Categories tab you can create categories to which you can assign personalizations and expressions. This makes it easier to organize your personalizations and expressions into groups.
...