<@td.viewerUrl>

The viewerUrl tag provides the URL to a given piece of content, represented by DocumentSearchInfo object

This tag contains the following attributes:

contextualizedChild
A Contextualization object. If specified, the preview rendition of this contextualized child will be used.
portal
The PortalIdentity object. If not specified, there must be a ${portal} attribute in scope.
scope
The scope of the @var attribute. Valid values are "page" and "request".
  • Required: false
  • Type: String
  • Default: "request"
searchResult
The SearchResultDocument object. This data is placed into the model of the searchResults.ftl page and returned by <@td.Search> and <@td.groupSearch> tags. If not specified, there must be a ${doc} variable storing a SearchResultDocument object in scope.
url
The ContentLocator of the item. If context information is provided via other attributes, it will override any context information in this object.
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
urlString
The ContentLocator of the item. If context information is provided via other attributes, it will override any context information in this object.
  • Required: false
  • Type: String
  • Default: none
var
The name of the variable used to access the result.
  • Required: false
  • Type: String
  • Default: none

Titania Delivery determines whether mapViewer.ftl or viewer.ftl will be rendered depending on the content.

Example Usage:

Assuming that a variable to a SearchResultDocument called ${doc} is available on the current page:

<@td.viewerUrl var="url" searchResult=doc />
.
.
.
<a href=${url}>Document</a>