Document Properties
Kbid
2480K3
Last Modified
04-Feb-2020
Added to KB
26-Jun-2013
Public Access
Everyone
Status
Online
Doc Type
References
Product
  • ICM 7.10
  • ICM 11
ISML Custom Tag - ISSLOTITERATOR

Name

ISSLOTITERATOR

Short Description

Wraps the contents of a slot as an iterator object

Table of Contents

Product Version

6.7

Product To Version

 

StatusNew Labels

Introduction

Sometimes there is the need to receive the contents of a slot wrapped as iterator object for further processing. That way the caller of the <ISSLOTITERARTOR> tag can include additional markup around each iterator value to make the rendering of the contained pagelet more explicit. On the contrary, when using the <ISSLOT>tag, all selected PageletAssignments are rendered implicitly via the module's invocation.

Syntax

<isslotiterator
(
  Slot = "( {ISML expression} )"
  IteratorAlias = "( {String} | {ISML expression} )"
)>

Example

<isslotiterator Slot="#Pagelet:SubSlot("slot.marketingTeaser.pagelet2-Slot")#" IteratorAlias="TeaserPagelets">
<isif condition="#hasLoopElements(TeaserPagelets)#">
  <ul>
    <isloop iterator="TeaserPagelets" alias="TeaserPagelet">
      <li>
        <ispagelet Pagelet="#TeaserPagelet#">
      </li>
    </isloop>
  </ul>
</isif> 

Attributes

Starting with Intershop 7.7

With Intershop 7.7 two new attributes have been introduced that provide alternative means of returning the pagelets of a slot.

With this change only the Slot attribute is required and one out of the three alternative return attributes IteratorAlias, PageletsAlias or AssignmentsAlias.

This change is useful in combination with the ISML Custom Tag - ISPAGELETASSIGNMENT, that provides additional information for the Design View when not rendering a slot with <ISSLOT>.

Both of the following attributes are required:

Slot

The slot the contents of which should be wrapped as iterator object.

IteratorAlias

Stores the key by which the iterable elements are accessible in the pipeline dictionary.

PageletsAlias

Note

Requires Intershop Commerce Suite 7.7or later.

 

Stores the key by which the Collection of pagelets is accessible in the pipeline dictionary.

In comparison to using the IteratorAlias that returns the pagelets as Iterator the PageletsAlias returns the pagelets in a Collection.

AssignmentsAlias

Note

Requires Intershop Commerce Suite 7.7or later.

Stores the key by which the Collection of pagelet assignments is accessible in the pipeline dictionary.

The AssignmentsAlias returns the pagelets of the slot as pagelet assignments.
This will not work for dynamic slots where pageletAssignmentsEnabled is set to "false" in the corresponding model element.

Reference - ISML Custom Tags

Disclaimer
The information provided in the Knowledge Base may not be applicable to all systems and situations. Intershop Communications will not be liable to any party for any direct or indirect damages resulting from the use of the Customer Support section of the Intershop Corporate Web site, including, without limitation, any lost profits, business interruption, loss of programs or other data on your information handling system.
Home
Knowledge Base
Product Releases
Log on to continue
This Knowledge Base document is reserved for registered customers.
Log on with your Intershop Entra ID to continue.
Write an email to supportadmin@intershop.de if you experience login issues,
or if you want to register as customer.