WhizBase variables are divided in five sections - FormFields, MsgAndLbl, Upload, Referrer Check and UserData. There is also a special section for
user-defined error messages - ErrorMessages
section.
Variables from UserData section can be read only by using
WhizBase functions $WBRV, $WBRRV, $WBGV and $WBGS
.
Not every WBSP document has to have all of these sections defined, but only
those that are really needed for specific task (e.g. you do not put Upload
section in WBSP file that will not accept any uploaded files).
Although these sections can be located anywhere in WBSP document and they do not
have to be placed together, we strongly recommend to place these sections at
the top of the file and to separate them from rest of the report template
using <!--WB_BeginTemplate-->
comment, or, at least, to enclose these sections
in a comment tags (use appropriate tags for every content type - <!-- --> for
HTML, /* */ for JavaScript, etc.).
Commands starting with WB_ are called WhizBase variables, which are
processed at start, BEFORE opening the database and/or processing the WBSP tags
and functions.
All variables can contain
WhizBase tags and functions in their input syntax
(syntax with braces - {}), and some variables can
contain WhizBase tags and functions in report syntax
(syntax with square brackets - []).
Functions in input syntax are processed when WB reads the variable, and those in
report syntax (where applicable) are processed when WB builds the report.
Variables that can use WhizBase tags and functions in report syntax contain
proper syntax example.
Important: To set the value of a single variable for entire site (e.g. WB_ShowLogo=F), put the variable definition in proper section of the file default.inc located in web sites document root directory. In the same way you can define value of a variable for entire directory (and all its subdirectories) by putting the variable definition in proper section of the file default.inc located in that directory.