Home > Contents > Index >
ASSET.GETTEMPLATEPAGENAME
Returns a SiteCatalog pagename for the asset in the designated variable.
Syntax
<ASSET.GETTEMPLATEPAGENAME NAME="asset object name" TARGET="publish destination ID" [SITE="publication name]" OUTPUT="variable name" />Parameters
NAME (required)
- Name of the asset object.
TARGET (required)
- ID of the Publish target.
SITE (optional)
- Name of the site.
OUTPUT (required)
- Name of the output variable to create.
Description
This tag checks if there is any data in the AssetDefaultTemplate table (configured by using the
Admin/Publishing/[publish destination]/SetDefaultTemplate
function) for the asset type/subtype combination. If there is no data, the tag gets the template from the asset. It loads the asset and gets a corresponding SiteCatalog entry for the template. If there is only one, it returns that. If there is more than one and the optional SITE argument was passed, it finds the first one which begins with that site name. If noSITE
argument was passed then it will return the first SiteCatalog entry it finds. This tag returns the pagename that is used when approving the asset for export.Error Numbers
The possible values of
errno
include:
Value Description -10004 A required parameter is missing. -10005 The requested object is not in the object pool (is not loaded intomemory).Example
<ASSET.LOAD NAME="anAsset" TYPE="Variables.assettype" OBJECTID="Variables.assetid"/> <if COND="IsError.Variables.errno=false"> <then> <ASSET.GETTEMPLATEPAGENAME NAME="anAsset" TARGET="Variables.target" SITE="SessionVariables.PublicationName" OUTPUT="pname"/> <STRING.STREAM VARIABLE="pname"/> </then> </if>See Also
ASSET.GETTEMPLATEFORTARGET
ASSET.GETTEMPLATEROOTELEMENT
ASSET.GET
Home > Contents > Index > ![]()
Oracle XML Tag Reference
Copyright (c) 2013, 2018, Oracle and/or its affiliates. All rights reserved.