Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 49 lines (35 sloc) 0.937 kb
77b5608 @docelic * Few more conf directives
docelic authored
1 __NAME__ purpose
2 override catalog variables for logged-in users
3 __END__
4
5
6 __NAME__ see also
7 Variable, var
8 __END__
9
10
11 __NAME__ synopsis
12 <arg choice='plain' rep='repeat'>
13 <replaceable>NAME</replaceable>
14 <replaceable>value</replaceable>
15 </arg>
16 __END__
17
18
19 __NAME__ description
20 The directive overrides values of catalog variables for logged-in users
21 (usually members of the site).
22 </para><para>
23 The override functionality is available when the catalog variable is
24 accessed using the &tag-var; tag.
25 __END__
26
27
28 __NAME__ notes
29 __END__
30
31
32 __NAME__ example: Overriding a variable
33 Put the following in &ccf;:
34 <programlisting>
35 Variable GREETING Hello, Guest!
36
37 Member GREETING Hello, Member!
38 </programlisting>
39
40 Put the following on an &IC; page:
41 <programlisting>
42 [var GREETING]
43 </programlisting>
44 The above will return <literal>Hello, Guest!</literal> or
45 <literal>Hello, Member!</literal>, depending on whether
46 the user is logged in or not.
47 __END__
48
Something went wrong with that request. Please try again.