<@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.
- Required: false
- Type: Contextualization
- Default: none
-
portal
- The PortalIdentity object. If not
specified,
there must
be a ${portal} attribute in scope.
- Required: false
- Type: PortalIdentity
- Default: The PortalIdentity object on the current page
-
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.
- Required: false
- Type: SearchResultDocument
- Default: SearchResultDocument object stored in a variable called ${doc}
-
url
- 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: ContentLocator
- Default: none
-
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>