Retrieves the value of a single field from a loaded asset object and stores it in a Sites variable.
- Input. Name assigned to the asset whose field value you want to get. This asset must be loaded and assigned a name before you can pass its name to this tag. (See
- Input. The name of the field whose value you want to retrieve.
- Input. The name of the output variable to create to store the value of the field. If you do not supply a name for this variable, Sites uses one with the same name as the field.
This tag obtains the value (or contents) from the specified field of a loaded asset and stores it in the specified output variable.
Use this tag to extract the asset information (from an asset object) that you want to display online. If you want to extract information from more than one field, use ASSET.SCATTER .
The possible values of
Value Description -10004 A required parameter is missing. -10005 The requested object is not in the object pool (is not loaded into memory).
This code retrieves and displays the contents (value) of the description field:<ASSET.GET NAME="Article1" FIELD="description" OUTPUT="headline"/> <CSVAR NAME="Variables.headline"/>
This code retrieves the value of the abstract field, writes it to the variable named
abstract, and then displays the contents of the variable:<ASSET.GET NAME="Article1" FIELD="abstract" /> <CSVAR NAME="Variables.abstract"/>
Home > Contents > Index >
Oracle XML Tag Reference
Copyright (c) 2013, 2019, Oracle and/or its affiliates. All rights reserved.