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

 

asset:addsite

Adds a site affiliation to a loaded asset.

Syntax

Parameters

name (required)
Name of the asset instance object.

pubid (required)
Input. Specifies the ID of the publication to add.

Description

This tag adds a site affiliation to an asset instance. The 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.

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 into
memory).
-12070
Asset was not fully loaded. Tag requires asset:load with editable flag to fully load asset.

Example

This code loads an article and adds to its existing sites a site specified in the variable pubid :

See Also

asset:load
asset:gather
asset:removesite
asset:save
asset:share
asset:sites

  Home > Contents > Index >

Oracle JSP Tag Reference
Copyright (c) 2013, 2019, Oracle and/or its affiliates. All rights reserved.