Accessing multivalue dropdown values in sightly

sandyas1279209 21-11-2018

Hi,

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

1627249_pastedImage_1.png

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>

1627364_pastedImage_9.png

AEM - QuestionsAdobe Experience ManagerAdobe Experience Cloud

Accepted Solutions (1)

Accepted Solutions (1)

Arun_Patidar
MVP
22-11-2018

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

Answers (0)