Home > Contents > Index >
Template Tag TOC  |   Alpha TOC  |   Tag Family TOC  |   Purpose TOC  |   Annotated TOC  |   Index 

 

ASSET.GETTEMPLATEFORTARGET

Returns a template name in the designated variable.

Syntax

Parameters

NAME (required unless type and objectid supplied)
Name of the asset object.

TYPE (required if name is not used)
Input. Asset type of the asset. Either type+objectid or name must be supplied to identify the asset.

OBJECTID (required if name is not used)
Input. Asset id of the asset. Either type+objectid or name must be supplied to identify the asset.

SUBTYPE (optional)
Input. Subtype of the asset. If type+objectid is used, the subtype parameter is used to look up the appropriate template name in the AssetDefaultTemplate table.

TARGET (required)
ID of the Publish target.

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. If there is no template from the asset, it returns the system default template (OpenMarket/DefaultTemplate). This tag returns the template name that is used when approving the asset for export.

errno

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 into
memory).

Example

This example gets the template name for a particular asset.

This example gets the template name for a Products asset without loading the asset.

See Also

ASSET.GET
ASSET.GETSUBTYPE
ASSET.GETTEMPLATEPAGENAME
ASSET.GETTEMPLATEROOTELEMENT
ASSET.SCATTER
  Home > Contents > Index >

FatWire XML Tag Reference
Copyright 2005,2006,2007 by FatWire Software
All rights reserved.