ez.no / exponential / documentation / reference / template operators / data extraction / ezpreference
ezpreference( preference )
| Name | Type | Description | Required |
|---|---|---|---|
| preference | string | User prenference name. | yes |
Value set preference
From version 3.2 Exponential has support for user preferences. This means that you can make the user e.g. push a button to change the appearance of the site. The preferences are normally stored in database and is available when the user logs on to the site. If the user is not logged in the preferences is stored in sesssion.
You can set any preference by using an URL like:
/user/preferences/set/bookmark_menu/off
This will set the preference "bookmark_menu" to "off".
{ezpreference( 'bookmark_menu' )}
returns the bookmark_menu setting specific for the current user.
Comments