Home > Contents > Index >
INSITE.ADDVALUE
Mark a position in which new data can be added into a multi-value attribute.
Syntax
<INSITE.ADDVALUE ASSETID="ID of asset" ASSETTYPE="type of asset" ASSETFIELD="Attribute_name of asset's field" [MODE="text|html"] [DELIM="delimiter HTML"] [EDITOR="type of editor"] [PARAMS="editor parameters"] [WIDTH="pixels or percentage"] [HEIGHT="pixels"] />Parameters
ASSETID (required)- ID of the asset to be edited.
ASSETFIELD (required)- Name of the field of the asset to be edited.
ASSETTYPE (required)- Type of asset to be edited.
MODE (optional)- Legal values are
htmlortext. The default value ishtml. When choosingtext, Sites will encode characters such as <, >, &, etc.
DELIM (optional)- Any HTML between the newly added value and the add button. The default value is
<br/>.
EDITOR (optional)- The name of the editor to use for the attribute. Valid values are:
fckeditor- uses the FCKeditor rich text editorewebeditpro- uses the EWebEditPro rich text editortext- the old inline text editor; works only in Internet Explorerdojotext(default) - liketext, but works in both Internet Explorer and Firefoxnumber(for numeric fields) - likedojotext, but can impose numeric restrictions on valuesspinner(for integer fields) - likenumber, but adds up/down arrows to increment/decrement the valuecurrency(for money fields) - likenumber, with some additional restrictionscalendar(for date fields) - displays a calendar to select a date
PARAMS (optional)- When
editoris specified as"dojotext","number","spinner","currency", or"calendar", this specifies, in JSON format, the parameters that should be passed to the underlying Dojo widgets. See The Dojo Book for a full description of all available options.
WIDTH (optional)- Width of the asset in percentage or pixels. The default value is
100%for eWebEditPro or450pixels for FCKEditor. When combined witheditor="dojotext", specifying a value (in pixels) for the width attribute will display a fixed-size edit box, instead of an autoresizable edit box.
HEIGHT (optional)- Height of the asset in pixels only. The default value is 200 pixels. Percentage values are unsupported.
Description
This tag marks a position in which new data can be added into a multi-value attribute.
Examples
This code creates an Add button for the headline field of Burlington Financial's AArticles asset type, using the default dojotext editor.
<INSITE.ADDVALUE ASSETID="Variables.cid" ASSETTYPE="AArticles" ASSETFIELD="Attribute_headline"/>This code creates an Add button for a fictitious multi-value blob field, which invokes FCKeditor when clicked.
<INSITE.ADDVALUE ASSETID="Variables.cid" ASSETTYPE="Variables.c" ASSETFIELD="Attribute_SomeMultivalueBlob" EDITOR="FCKEditor" WIDTH="400" HEIGHT="350"/>
Home > Contents > Index > ![]()
Oracle XML Tag Reference
Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.