Home > Contents > Index >
ASSET.REMOVESITE
Removes a site affiliation from a loaded asset.
Syntax
<ASSET.REMOVESITE name="asset instance object
" pubid="siteId
" </ASSET.REMOVESITE>Parameters
NAME (required)
- Name of the asset instance object.
PUBID (required)
- Input. Specifies the ID of the publication to remove.
Description
This tag removes a site affiliation from an asset instance. The updated site information will be written upon ASSET.SAVE. The asset instance must have been loaded using the editable parameter of ASSET.LOAD set to true.
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 intomemory). -12070 Asset was not fully loaded. Tag requires ASSET.LOAD with editable flag to fully load asset.Example
This code loads an article and removes all site affiliations and adds one from the Session Variable, pubid:
<ASSET.LOAD NAME="anArticle" TYPE="Article" OBJECTID='<%=ics.GetVar("id")%>' EDITABLE="true" > <ASSET.SITES NAME="anArticle" LIST="sites" > <LOOP list="sites" ><ASSET.REMOVESITE NAME="anArticle" PUBID="sites.pubid" /></LOOP> <ASSET.ADDSITE NAME="anArticle" PUBID="SessionVariables.pubid" />See Also
ASSET.LOAD
ASSET.GATHER
ASSET.REMOVESITE
ASSET.SAVE
ASSET.SHARE
ASSET.SITES
Home > Contents > Index > ![]()
FatWire XML Tag Reference
Copyright 2005,2006,2007 by FatWire Software
All rights reserved.