Home > Contents > Index >
Template Tags TOC | Alpha TOC | Tag Family TOC | Purpose TOC | Annotated TOC | 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
html
ortext
. The default value ishtml
. When choosingtext
, Content Server 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
editor
is 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 or450
pixels 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='<%=ics.GetVar("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 = '<%=ics.GetVar("cid")%>' assettype = '<%=ics.GetVar("c")%>' assetfield = "Attribute_SomeMultivalueBlob" editor = "FCKEditor" width = "400" height = "350"/>
Home > Contents > Index > ![]()
FatWire JSP Tag Reference
Copyright 2005 - 2011 by FatWire Corporation
All rights reserved.