Home > Contents > Index >
Template Tags TOC | Alpha TOC | Tag Family TOC | Purpose TOC | Annotated TOC | Index
asset:getreferencestotypes
Gets a list of assets that reference assets of the asset types provided.
Syntax
<asset:getreferencestotypes
listvarname="
name of list
"
assettypes="
comma separated asset types
"
[excludetypes="
comma separated asset types
"]/>
Parameters
listvarname (required)
- Output. Name of list in which to put the list of assets which refer to assets of the types in the
ASSETTYPES
. The list has the columnsassetid
andassettype
.
assettypes (required)
- Input. Comma separated list of asset types whose references we are looking for.
excludetypes (optional)
- Input. Comma separated list of asset types whose references to assets we do not care about and therefore can be excluded from the list.
Description
This tag is used prior to deleting an asset type to ensure that assets do not refer to assets of the type to be deleted.
errno
The possible values of
errno
include:
Value Description -10004 A required parameter is missing.Example
This example returns a list of all non-Collection assets that refer to Article or Image assets.
<asset:getreferencestotypes listvarname="referers" assettypes="Article,Image" excludetypes="Collection"/>See Also
Home > Contents > Index > FatWire JSP Tag Reference
Copyright 2005,2006,2007 by FatWire Software
All rights reserved.