Home > Contents > Index >
Template Tags TOC | Alpha TOC | Tag Family TOC | Purpose TOC | Annotated TOC | Index
asset:getsubtype
Gets the subtype or flex definition of an asset.
Syntax
<asset:getsubtype [name="loaded asset]" [type="assettype]" [objectid="asset id]" [output="variable name"] />Parameters
name (optional)
- Name of the loaded asset. Either name or type + objectid must be provided to identify the asset.
type (optional)
- Asset type of an asset whose subtype to get. Objectid is required to accompany this parameter.
objectid (optional)
- Asset id of an asset whose subtype to get. Type is required to accompany this parameter.
output (optional)
- Name of the variable in which to set the results. If the name is not supplied,
subtype
is used.
Description
If no subtype has been specified for this asset, the variable will contain an empty string. For flex assets, the subtype is the flex definition asset.
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
This code gets and displays the subtype of an asset:
<asset:load name="asset" type="Article" objectid='<%=ics.GetVar("cid")%>' /> <asset:getsubtype name="asset"/> <ics:getvar name="subtype"/>This code displays the subtype of an asset without loading the asset:
<asset:getsubtype type="Article" objectid='<%=ics.GetVar("cid")%>' output="stype" /> <ics:getvar name="stype"/>See Also
asset:load
asset:getlegalsubtypes
Home > Contents > Index > ![]()
Oracle JSP Tag Reference
Copyright (c) 2013, 2016, Oracle and/or its affiliates. All rights reserved.