<@td.assemblyEditorUrl>
The assemblyEditorUrl tag generates the URL to the
Assembly editor for the
current
Portal. If @var is specified, this
tag stores the URL in the
given variable,
otherwise it places it
onto the page.
This tag contains the following attributes:
-
assembly
- The Assembly object to open in the editor. If not
specified, the
editor will be opened with a new empty
assembly.
- Required: false
- Type: Assembly
- 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:
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.assemblyEditorUrl assembly=assembly target="_blank"/>Edit ${assembly.name?html}</a> </#list> </#if> </#if>