Template docs updated for 6.99

This commit is contained in:
Colin Kuskie 2006-04-28 17:04:23 +00:00
parent 2f24cd3f3c
commit f91b1b9d13
2 changed files with 37 additions and 17 deletions

View file

@ -21,6 +21,16 @@ our $HELP = {
description => 'template description', description => 'template description',
namespace => 'Asset_Template', namespace => 'Asset_Template',
}, },
{
title => 'head block',
description => 'head block description',
namespace => 'Asset_Template',
},
{
title => 'parser',
description => 'parser description',
namespace => 'Asset_Template',
},
], ],
related => [ related => [
] ]

View file

@ -214,8 +214,11 @@ Loops come with special condition variables of their own. They are __FIRST__, __
</TMPL_LOOP> </TMPL_LOOP>
</pre> </pre>
</p>|, </p>
lastUpdated =>1130959765, <p><i>NOTE: This only documents WebGUI's default template language, HTML::Template. If the Template Type
has been set to some other language you will need to consult the documentation for it.</i></p>.
|,
lastUpdated =>1146243644,
}, },
'template variable title' => { 'template variable title' => {
@ -233,37 +236,44 @@ The version of WebGUI on your site.
The release status for this version of WebGUI, stable, beta, gamma, etc. The release status for this version of WebGUI, stable, beta, gamma, etc.
</p> </p>
<p> <p><b>session.user.username</b><br />
<b>Session Variables</b><br /> The current user's username.
In addition to any variables defined in a given template, the session variables are made available to you with this syntax:
</p> </p>
<p>&lt;tmpl_var session.<i>section</i>.<i>variable</i>&gt;</p> <p><b>session.user.firstDayOfWeek</b><br />
From the current user's profile, the day they selected to be the first day of the week.
</p>
<p>Some common, useful session variables are:</p> <p><b>session.config.extrasurl</b><br />
From the WebGUI config, the URL for the extras directory.
</p>
<p><b>session.var.adminOn</b><br /> <p><b>session.var.adminOn</b><br />
This variable will be true if the user is in Admin mode. This variable will be true if the user is in Admin mode.
</p> </p>
<p><b>session.var.userId</b><br /> <p><b>session.setting.companyName</b><br />
The userId for the current user. From the WebGUI settings, the company name.
</p> </p>
<p><b>session.user.username</b><br /> <p><b>session.setting.anonymousRegistration</b><br />
The current user's username. From the WebGUI settings, whether or not anonymous registration has been enabled.
</p> </p>
<p><b>session.user.language</b><br /> <p>
The current user's preferred language (the default is English). <b>Session Form Variables</b><br />
Any form variables will be available in the template with this syntax:
</p> </p>
<p><b>session.user.karma</b><br /> <p>&lt;tmpl_var session.form.<i>variable</i>&gt;</p>
The user's karma.
</p> <p>If there is more than 1 value in a form variable, only the last will be returned</p>
<p><i>NOTE: The syntax for these variables is shown in WebGUI's default template language, HTML::Template. If the Template Type
has been set to some other language you will need to consult the documentation for the appropriate syntax for its variables.</i></p>.
|, |,
lastUpdated => 1130978466, lastUpdated => 1146243514,
}, },
}; };