<@td.themeFileUrl>
The themeFileUrl tag Generates the URL to a file in the
Portal Theme's
"static"
folder.
This tag contains the following attributes:
-
scope
- The scope of the @var attribute. Valid values are
"page" and "request".
- Required: false
- Type: String
- Default: "request"
-
urlQuery
- The query string. This value will NOT be URL-encoded, so it
should be encoded already. You can also use nested <@td.urlParam> tags
to specify individual URL parameters in a URL-escaped way.
- Required: false
- Type: String
- Default: none
-
value
- The path within the "static" folder.
- Required: false
- Type: String
- Default: The base URL to the "static" folder
-
var
- The name of the variable used to access the result.
- Required: false
- Type: String
- Default: none
Example Usage:
Assuming the presence of /static/logo.png
in the Portal Theme:
<@td.themeFileUrl value="logo.png" />
The above would add a url pointing to logo.png
to the page. As with other
tags, this url could be used directly as an attribute value or stored in a variable:
<img src=<@td.themeFileUrl value="logo.png" /> />
<@td.themeFileUrl var="logoUrl" value="logo.png" /> . . . <img src=${logoUrl} />
The file pointed to by the @value
attribute must be a file relative to the
static/
directory.