Versions Compared

Key

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

...

  1. Navigate to Configuration > Personalize.
  2. Click the "XSLT Expressions" tab.
  3. Select <New expression> from the "Select" menu.
  4. Define the following properties:

    PropertyDescription
    CategoryThe category (if any) to which this expression belongs.
    AvailableSpecifies whether this expression is available for use.
    TypeThe 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 linksSelecting "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.
    XSLTXSLT code (for type "XSL") or XPATH expression (for other types). Examples:

    Condition
    /root/system/user/sex gender = '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 toIf this expression is used in one or more presentation models, the models are listed here.
    Test XSLTTests the XSLT code to ensure that it is correct.

...