Find file
Fetching contributors…
Cannot retrieve contributors at this time
44 lines (35 sloc) 1.03 KB
__NAME__ purpose
define default user values
__NAME__ see also
value, ScratchDefault
__NAME__ synopsis
<arg choice='plain'><replaceable>name</replaceable></arg>
<arg choice='plain' rep='repeat'><replaceable>value</replaceable></arg>
__NAME__ description
The directive sets default &glos-value;s in users' &glos-session;s.
Values are otherwise kept in &glos-UserDB; and they override the defaults,
but when the user is not logged in (and hasn't set any
of his preferences for the current session), those defaults will be used.
__NAME__ example: Defining default values
Put the following in &ccf;:
ValuesDefault fname New lname User
ValuesDefault country HR
Create a test page:
Your first name is: [value fname]<br/>
Your last name is: [value lname]<br/>
Your country code is: [value country]
__NAME__ example: Set default shipping mode
ValuesDefault mv_shipmode UPS