ezpreference

Summary

Fetches a value from a user's preference.

Usage

ezpreference( preference )

Parameters

NameTypeDescriptionRequired
preference string User prenference name. yes

Returns

Value set preference

Description

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".

Examples

{ezpreference( 'bookmark_menu' )}

returns the bookmark_menu setting specific for the current user.

Comments

Contents

Reference

Database diagram
Template operators
    PDF
    Arrays
    Data extraction
       currentdate
       ezini
       ezhttp
       ezpreference
       ezsys
       fetch
       module_params
    Formatting
    Images
    Logic
    Mathematics
    Miscellaneous
    Strings
    URLs
    Variables
Template functions
Data fetching
Modules
XML tags


Created

05/02/2004
11:33:23 am
by Balazs Halasy

Last updated

06/02/2004
10:58:51 am
by Kåre Køhler Høvik

Authors

Balazs Halasy
Kåre Køhler Høvik



This page is part of the Exponential documentation. The documentation is available under the GNU Free Documentation License. All contributions will be released under the terms of this license.