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

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 or text. The default value is html. When choosing text, Sites will encode characters such as <, >, &, < space >, " and '

editor (optional)
The name of the editor to use for the attribute. Valid values are:
  • ckeditor - uses the CKeditor rich text editor
When not specified, Sites selects an editing widget adapted to the data type of the field being edited

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 when mode="html", or like string:stream when mode="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 the c and cid Sites variables:

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.