Home > Contents > Index >
ICS.GETVAR
Returns the value of a Content Server variable.
Syntax
<ICS.GETVAR [NAME="varname"] ENCODING="default" [OUTPUT="some output"]/>Parameters
NAME (optional)
- The regular name of the variable.
ENCODING (required)
- The encoding used to convert binary values to a string. The value of this parameter must be set to
default
.
OUTPUT (optional)
- Specifies an optional output variable. If this parameter is not specified, the output is streamed to the browser.
Description
The
ics.getvar
tag returns the value of a variable. If the variable does not exist,ics.getvar
returns an empty string.errno
None.
Example
The following line retrieves the value of the Content Server variable
username.
<ics.getvar name=username" encoding="default"/>
Home > Contents > Index > ![]()
FatWire XML Tag Reference
Copyright 2005,2006,2007 by FatWire Software
All rights reserved.