<@td.portalUrl>
The portalUrl tag provides the URL of a page relative
to the root
of the Portal website. If the @var attribute is
specified, the URL is
stored
in the given variable, otherwise it is
written to the page.
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 Portal UI. If omitted, the
Portal
homepage URL will be used.
- Required: false
- Type: String
- Default: The url to the Portal home page.
-
var
- The name of the variable used to access the result.
- Required: false
- Type: String
- Default: none
Example Usage:
<@td.portalUrl var="url" value="search" urlQuery="term=Titania" /> . . . <a href=${url}>Search for "Titania"</a>
The above code snippet would generate a link pointing to the Search page with a query of
Titania
.