Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

SOLVED

How to check the size of list in sightly?

Dinu_Arya
Level 7
Level 7

Hi,

I need to check size of the list in sightly. I need to display UI only when it has more than 2 items in list. Any idea?

Thanks,

Arya.

desktop_exl_promo_600x100_weknowyou.png

1 Accepted Solution
smacdonald2008
Correct answer by
Level 10
Level 10

Use Slighty and Java and count the list. If you are not aware of how to use Sligtly with Java - see: https://helpx.adobe.com/experience-manager/using/creating-sightly-component.html

View solution in original post

2 Replies
smacdonald2008
Correct answer by
Level 10
Level 10

Use Slighty and Java and count the list. If you are not aware of how to use Sligtly with Java - see: https://helpx.adobe.com/experience-manager/using/creating-sightly-component.html

View solution in original post

Anonymous
Not applicable

Java counting is a good way to solve your problem 🙂