Accessing multivalue dropdown values in sightly | Community
Skip to main content
Level 2
Nov 22, 2018 2:56 AM UTC
Solved

Accessing multivalue dropdown values in sightly

Hi,

Can anyone help me to iterate multi-value drop-down values to sightly from multi-field  touch ui dialog(AEM6.3)

sightly code

    <section class="lfa-panel-container gcss-theme-${properties.theme} row" data-sly-use.component="${'**********' @compName='******'}" data-sly-list="${componentmultifieldlist}">   Iterating Multifield items

<div data-sly-list.child="${item['hideTile']}}">     -- Trying to iterate multi value dropdown item ([desktop,mobile])

            <div class="${child} " >           

                     

            </div>

</div>

    </section>

AEM - Questions​Adobe Experience Manager​Adobe Experience Cloud​

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
arunpatidar
arunpatidarAccepted solution
New Participant
Nov 22, 2018 8:51 AM UTC

Hi,

You can iterate multivalued property in HTL like below:

<dl data-sly-list="${properties.bgcolor}">

    <dt>index: ${itemList.index}</dt>

    <dd>value: ${item}</dd>

</dl>

If you are using java you can create a list for multiplied and another array or list for multivalued and parse through data-sly-list

Arun Patidar

1 reply

arunpatidar
arunpatidarAccepted solution
New Participant
Nov 22, 2018 8:51 AM UTC

Hi,

You can iterate multivalued property in HTL like below:

<dl data-sly-list="${properties.bgcolor}">

    <dt>index: ${itemList.index}</dt>

    <dd>value: ${item}</dd>

</dl>

If you are using java you can create a list for multiplied and another array or list for multivalued and parse through data-sly-list

Translate
Arun Patidar