<@APPFILENAME>
Syntax
<@APPFILENAME ENCODING=encoding>
Description
Returns the name of the current application
file. This meta tag is useful for creating links that reference the
current application file.
Compare the following two tags:
- <@APPFILE> returns the
path and the name
- <@APPFILEPATH> returns
the path and not the name.
Note:
This meta tag is often used
to create URLs, for example, in the HREF attribute of an
anchor tag in HTML. To make sure that the meta tag returns a properly
encoded value, you can use one of the following:
<@APPFILE ENCODING="URL">
<@URLENCODE STR="<@APPFILE>">
Example
The following example processes different
HTML depending on the name of the current application file. You may
find this useful in files that are referenced with <@INCLUDE>
that are used by several application files but that you would like to
behave differently in different application files.
<@IFEQUAL <@APPFILENAME>
customers.taf>
[...HTML to execute...]
<@ELSEIFEQUAL <@APPFILENAME> administrator.taf>
[...HTML to execute...]
<@ELSE>
[...default HTML to execute...]
<@/IF>
See Also
<@APPFILE>
<@APPFILEPATH>
<@INCLUDE>
<@URLENCODE>
|