Home > Contents > Index >
asset:sites
Creates a list object of sites (formerly known as publications) to which the asset is shared. The list contains the columns of the Publication table.
Syntax
<asset:sites name="asset name" [type="assettype"] [objectid="assetid"] list="list name" [pubid="publication id"] />Parameters
name (required unless type and objectid supplied)
- Name of previously loaded asset.
type (required if name is not used)
- Input. Asset type of the asset whose sites you want to list. 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 whose sites you want to list. Either
type+objectid
or name must be supplied to identify the asset.
list (required)
- Name of list that is created.
pubid (optional)
- Publication ID. Use when you want to know if an asset is in a particular site. Errno is set to -101 if the asset is not in that site.
Error Numbers
The possible values of
errno
include:
Value Description -101 The asset is not in the site. -10004 A required parameter is missing. -10005 The requested object is not in the object pool (is not loaded into memory).Example
This example shows all the sites with which this asset is shared.
<asset:load name="myArticle" objectid="123456789012"/> <asset:sites name="myArticle" list="sites"/> <ics:listloop listname="sites"> <string:stream list="sites" column="description"/><br/> </ics:listloop>This example shows all the sites with which this asset is shared without loading the asset.
<asset:sites type="Article" objectid="123456789012" list="sites"/> <ics:listloop listname="sites"> <string:stream list="sites" column="description"/><br/> </ics:listloop>This example determines whether an asset is in a particular site.
<asset:sites name="theAsset" list="isinPub" pubid='<%=ics.GetVar("siteid")%>' /> <ics:if condition='<%=ics.GetErrno()==0%>'> <ics:then> <string:stream list="isinPub" column="description"/><br/> </ics:then> </isc:if>See Also
asset:addsite
asset:load
asset:share
asset:removesite
Home > Contents > Index > ![]()
Oracle JSP Tag Reference
Copyright (c) 2013, 2018, Oracle and/or its affiliates. All rights reserved.