<@td.assemblyViewerUrl>
The assemblyViewerUrl tag provides a url to the viewer
page of a
given Assembly
This tag contains the following attributes:
-
assembly
- The Assembly object.
- Required: true
- Type: Assembly
- Default: none
-
refId
- The ID of the node in the Assembly to display.
If
omitted,
the URL of the Assembly itself is returned.
- Required: false
- Type: String
- Default: The root node of the Assembly
-
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:
It is advised to check for the presence of the Assemblies Feature and ensure that a PortalUser is logged in before using this tag. Failing to do so will result in errors.
<#if portal.enabledFeatures?seq_contains['customAssemblies'] && user??> <@td.assemblies var="assemblies" /> . . . <#if assemblies?size > 0> <#list assemblies as assembly> <a href=<@td.assemblyViewerUrl assembly=assembly/>${assembly.name?html}</a> </#list> </#if> </#if>