File:
[LON-CAPA] /
loncom /
html /
adm /
help /
ext_examples.library
Revision
1.1:
download - view:
text,
annotated -
select for diffs
Wed Jun 9 13:55:42 2004 UTC (20 years, 2 months ago) by
www
Branches:
MAIN
CVS tags:
version_2_1_X,
version_2_1_3,
version_2_1_2,
version_2_1_1,
version_2_1_0,
version_2_0_X,
version_2_0_99_1,
version_2_0_2,
version_2_0_1,
version_2_0_0,
version_1_99_3,
version_1_99_2,
version_1_99_1_tmcc,
version_1_99_1,
version_1_99_0_tmcc,
version_1_99_0,
version_1_3_X,
version_1_3_3,
version_1_3_2,
version_1_3_1,
version_1_3_0,
version_1_2_X,
version_1_2_99_1,
version_1_2_99_0,
version_1_2_1,
version_1_2_0,
version_1_1_99_5,
version_1_1_99_4,
version_1_1_99_3,
version_1_1_99_2,
version_1_1_99_1,
HEAD
These are useful and should become part of the distribution.
<library>
<startoutext />
Some things to do with &EXT()<br />
<table border="1">
<tr><th>Incantation</th><th>result</th><th>Explanation</th></tr>
<tr><td>request.filename</td><td>&EXT('request.filename')</td>
<td>full internal path of the current resource</td></tr>
<tr><td>request.uri</td><td>&EXT('request.uri')</td>
<td>Uri of the currently viewed resource</td></tr>
<tr><td>request.state</td><td>&EXT('request.state')</td>
<td>state of the resource, eith construct or publish</td></tr>
<tr><td>user.name</td><td>&EXT('user.name')</td>
<td>username of user</td></tr>
<tr><td>user.domain</td><td>&EXT('user.domain')</td>
<td>Domain the user is in</td></tr>
<tr><td>user.course.sec</td><td>&EXT('user.course.sec')</td>
<td>Users's Course Section</td></tr>
<tr><td>environment.firstname</td><td>&EXT('environment.firstname')</td>
<td>User's firstname</td></tr>
<tr><td>environment.middlename</td><td>&EXT('environment.middlename')</td>
<td>User's middle name</td></tr>
<tr><td>environment.lastname</td><td>&EXT('environment.lastname')</td>
<td>User's lastname</td></tr>
<tr><td>environment.generation</td><td>&EXT('environment.generation')</td>
<td>Jr., Sr., III, etc.</td></tr>
<tr><td>environment.screenname</td><td>&EXT('environment.screenname')</td>
<td>User screen name (name that appears in FDBK postings)</td></tr>
<tr><td>environment.nickname</td><td>&EXT('environment.nickname')</td>
<td>User nick name. (Name the user prefers to be called in person</td></tr>
<tr><td>environment.id</td><td>&EXT('environment.id')</td>
<td>user id number</td></tr>
<tr><td>request.browser.version</td><td>&EXT('request.browser.version')</td>
<td>Version of the users Browser</td></tr>
<tr><td>request.browser.type</td><td>&EXT('request.browser.type')</td>
<td>What type of browser is the user using</td></tr>
<tr><td>course.description</td><td>&EXT('course.decription')</td>
<td>Decriptive name for a course</td></tr>
<tr><td>course.num</td><td>&EXT('course.num')</td>
<td>Internal Course Identifier</td></tr>
<tr><td>course.url</td><td>&EXT('course.url')</td>
<td>Current course toplevel map.</td></tr>
<tr><td>query.*</td><td></td>
<td>query.* allows access to the passed in form parameters</td></tr>
<tr><td>query.grade_target</td><td>&EXT('query.grade_target')</td>
<td>Ignore this. It isn't generally useful.</td></tr>
</table>
Other things:
<table border="1">
<tr><th>Incantation</th><th>result</th><th>Explanation</th></tr>
<tr><td>$external::target</td>
<td><display>$external::target</display></td>
<td>Whether we are printing (tex) or viewing on screen (web)</td></tr>
<tr><td>$external::part</td>
<td><display>$external::part</display></td>
<td>current Part id </td></tr>
<tr><td>$external::gradestatus</td>
<td><display>$external::gradestatus</display></td>
<td>The solved status of the current part.</td></tr>
<tr><td>$external::datestatus</td>
<td><tex>\verb+</tex><display>$external::datestatus</display><tex>+</tex></td>
<td>The current status of the problem (CLOSE, CAN_ANSWER, etc.)</td></tr>
<tr><td>$external::randomseed</td>
<td><display>$external::randomseed</display></td>
<td>The randomseed currently in use.</td></tr>
<tr><td></td><td></td>
<td></td></tr>
</table>
<endouttext />
</library>
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>