<@td.pageUrl>

The pageUrl tag computes the URL to a custom page in the portal's theme.

This tag contains the following attributes:

page
The path to the custom page, relative to the /pages/custom folder in the portal theme.
  • Required: true
  • Type: String
  • Default: none
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
var
The name of the variable used to access the result.
  • Required: false
  • Type: String
  • Default: none

Example usage:

Assuming the existence of a /pages/custom/demo.ftl:

<@td.pageUrl page="demo" />

would insert the url to the page created by the demo.ftl template into the DOM. It is most useful as the href attribute to an anchor tag.

<a href=<@td.pageUrl page="demo.ftl" />>Demo Page</a>

Alternatively, the url could be stored in a variable and referenced later in the page:

<@td.pageUrl var=url page="demo.ftl" />
.
.
.
<a href=${url}>Demo Page</a>

The value of the @page attribute must be a template file relative to /pages/custom/.