Home > Contents > Index >
Template Tags TOC | Alpha TOC | Tag Family TOC | Purpose TOC | Annotated TOC | Index
insite:edit
Makes an asset field editable in web mode. All data types are supported, including upload fields.
Syntax
<insite:edit field="Attribute_name of asset's field" [assetid="ID of asset"] [assettype="type of asset"] [mode="text|html"] [editor="type of editor"] [params="editor parameters"] [value="field value to be edited"] [variable="variable name"] [ssvariable="session variable name"] [property="property name"] [list="list name"] [column="column name"] />Parameters
field (required)
- Name of the field of the asset to be edited.
assetid (optional)
- ID of the asset to be edited. Defaults to the value of the
cid
Sites variable.
assettype (optional)
- Type of asset to be edited. Defaults to the value of the
c
Sites variable.
mode (optional)
- Legal values are
html
ortext
. The default value ishtml
. When choosingtext
, Sites will encode characters such as <, >, &, < space >, " and '
editor (optional)
- The name of the editor to use for the attribute. Valid values are:
When not specified, Sites selects an editing widget adapted to the data type of the field being edited
ckeditor
- uses the CKeditor rich text editor
params (optional)
- This specifies, in JSON format, the parameters that should be passed to the underlying Dojo widgets. See The Dojo Toolkit for more information about the widgets.
Description
This tag allows content contributors to edit assets using the web mode UI. When viewed outside of the web mode UI, this tag behaves exactly like
render:stream
whenmode="html"
, or likestring:stream
whenmode="text"
. For more information about editing assets in web mode, see the Sites Developer's Guide.Examples
The following example enables editing the
FSIIHeadline
of the asset determined by thec
andcid
Sites variables:<%-- The code sample assumes the initial value of the FSIIHeadline attribute is stored in a Sites variable called "Headline". --%> <insite:edit assetid='<%=ics.GetVar("cid")%>' assettype='<%=ics.GetVar("c")%>' field="FSIIHeadline" variable="Headline" />which can be shortened to:<insite:edit field="FSIIHeadline" variable="Headline" />Please refer to the Sites Developer's Guide for more details.
Home > Contents > Index > Oracle JSP Tag Reference
Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved.