Home > Contents > Index >
Template Tags TOC | Alpha TOC | Tag Family TOC | Purpose TOC | Annotated TOC | Index
insite:slotlist
Streams additional widgets allowing content contributors to edit multivalued asset reference fields.
Syntax
<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>Parameters
countervar
- Designates a variable containing a 1-based index. This attribute is used when
insite:slotlist
is combined with nestedinsite:calltemplate
tags and the asset references are rendered in an order which doesn't match the field ordering.Alternatively, the
index
attribute of each nestedinsite:calltemplate
tag can be used for the same purpose.tname (optional)
- see
tname
attribute ofinsite:calltemplate
.
slotname (optional)
- see
slotname
attribute ofinsite:calltemplate
.
field (optional)
- see
field
attribute ofinsite:calltemplate
.
assetid (optional)
- see
assetid
attribute ofinsite:calltemplate
.
assettype (optional)
- see
assettype
attribute ofinsite:calltemplate
.
context (optional)
- see
context
attribute ofinsite:calltemplate
.
style (optional)
- see
style
attribute ofinsite:calltemplate
.
ttype (optional)
- see
ttype
attribute ofinsite:calltemplate
.
clegal (optional)
- see
clegal
attribute ofinsite:calltemplate
.
roles (optional)
- see
roles
attribute ofinsite:calltemplate
.
title (optional)
- see
title
attribute ofinsite:calltemplate
.
buttons (optional)
- View override for the buttons to show in the mini bar for edit operations on the slot.
Description
insite:slotlist
typically wraps an area rendering a multivalued asset reference field. It can be used:
- in conjunction with nested
insite:calltemplate
tags, allowing nested values to be edited in-context- or on its own, without nested
insite: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.
Notes
- Nested
insite:calltemplate
tags inherit attribute values from the parentinsite:slotlist
tag.- This tag is only applicable to asset reference fields. See
insite:list
for more details on editing multivalued fields containing other data types.Example
The following example enables editing the multivalued
relatedStories
field of the asset determined by thec
andcid
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< For more information, see "Coding Templates for In-Context Content Editing" in the Sites Developer's Guide.See Also
Home > Contents > Index > Oracle JSP Tag Reference
Copyright (c) 2013, 2016 Oracle and/or its affiliates. All rights reserved.