Home > Contents > Index >
Streams additional widgets allowing content contributors to edit multivalued asset reference fields.
<insite:slotlist [tname="Template name"] [slotname="name of slot"] [variant="regular expression"] [field="the name of the edited asset reference field"] [assetid="the id of the edited asset"] [assettype="the type of the edited asset"] [context="context override"] [style="pagelet|element|embedded"] [ttype="Template|CSElement"] [clegal="comma-separated list of allowed types and subtypes"] [emptytext="Text displayed when the slot is empty"] [roles="List of roles allowed to edit this slot"] [title="overrides the default slot title"] [buttons="buttons"] [countervar="name of variable containing current list index"]> [<insite:calltemplate ... /> <insite:calltemplate ... /> ...] </insite:slotlist>
countervar
insite:slotlist
is combined with nested insite:calltemplate
tags and the asset references are rendered in an order which doesn't match the field ordering.
Alternatively, the index
attribute of each nested insite:calltemplate
tag can be used for the same purpose.
tname (optional)
tname
attribute of insite:calltemplate
.slotname (optional)
slotname
attribute of insite:calltemplate
.field (optional)
field
attribute of insite:calltemplate
.assetid (optional)
assetid
attribute of insite:calltemplate
.assettype (optional)
assettype
attribute of insite:calltemplate
.context (optional)
context
attribute of insite:calltemplate
.style (optional)
style
attribute of insite:calltemplate
.ttype (optional)
ttype
attribute of insite:calltemplate
.clegal (optional)
clegal
attribute of insite:calltemplate
.roles (optional)
roles
attribute of insite:calltemplate
.title (optional)
title
attribute of insite:calltemplate
.buttons (optional)
insite:slotlist
typically wraps an area rendering a multivalued asset reference field. It can be used:
insite:calltemplate
tags, allowing nested values to be edited in-contextinsite:calltemplate
tags. This is particularly useful when field values are not directly editable on the web page. For instance, the multivalued field could contain a list of Image assets used to populate a javascript-based image gallery.In editing mode, the tag generates a toolbar, displayed when the content contributor hovers over the wrapped area. This toolbar allows contributors to access a dedicated popup window showing all field values. In this popup, contributors can edit field values, but also add, remove and reorder them.
In any other rendering mode, this tag does not generate any markup.
insite:calltemplate
tags inherit attribute values from the parent insite:slotlist
tag.insite:list
for more details on editing multivalued fields containing other data types.The following example enables editing the multivalued relatedStories
field of the asset determined by the c
and cid
variables:
<insite:slotlist field="relatedStories"< <ics:listloop listname="relatedStories"< <ics:listget listname="relatedStories" fieldname="value" output="articleId" /< <%-- Note that the field attribute is inherited from the parent tag --%> <insite:calltemplate tname="Summary/SideBar" c="AVIArticle" cid='<%=ics.getvar("articleid")%>' /< </ics:listloop< </insite:slotlist< %=ics.getvar("articleid")%>For more information, see "Coding Templates for In-Context Content Editing" in the Sites Developer's Guide.
Home > | Contents > | Index > | ||
![]() |
Oracle JSP Tag Reference |