Add skin rule example
This commit is contained in:
parent
b06a2095b1
commit
4442d4195d
|
@ -114,11 +114,17 @@ To achieve this, you can create a rule in the Manager: select
|
|||
``General Parameters`` > ``Portal`` > ``Customization`` >
|
||||
``Skin display rules`` on click on "New key". Then fill the two fields;
|
||||
|
||||
- **Rule**: a Perl expression (you can use %ENV hash to get environment
|
||||
variables, or $_url to get URL called before redirection, or $ipAddr
|
||||
to use user IP address). If the rule evaluation is true, the
|
||||
corresponding skin is applied.
|
||||
- **Skin**: the name of the skin to use.
|
||||
- **Key**: a Perl expression (you can use ``%ENV`` hash to get environment
|
||||
variables, or ``$_url`` to get URL called before redirection, or ``$ipAddr``
|
||||
to use user IP address). If the rule evaluation is true, the corresponding
|
||||
skin is applied.
|
||||
- **Value**: the name of the skin to use.
|
||||
|
||||
Example:
|
||||
|
||||
```
|
||||
$_url =~ m#^http://test1.example.com#
|
||||
```
|
||||
|
||||
Skin files
|
||||
~~~~~~~~~~
|
||||
|
|
Loading…
Reference in New Issue
Block a user