Path

ez.no / ezpublish / documentation / incoming / user preferences


User preferences

These documentation pages are no longer maintained. Please visit the new documentation site.

From version 3.2 eZ publish 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".

From version 3.5 (revision 8102 to be precise) you can append a return or redirection URL, for example:

/user/preferences/set/admin_list_limit/2/content/draft

will set the preference "admin_list_limit" to 2 and redirect an user to the page /content/draft.
You can fetch the values from a preference in the template by using the ezpreference operator. Example:

ezpreference('bookmark_menu')

Comments