How to check the size of list in sightly?

Avatar

Avatar
Contributor 2
Level 4
Dinu_Arya
Level 4

Likes

38 likes

Total Posts

184 posts

Correct reply

16 solutions
Top badges earned
Contributor 2
Applaud 25
Validate 50
Validate 25
Validate 10
View profile

Avatar
Contributor 2
Level 4
Dinu_Arya
Level 4

Likes

38 likes

Total Posts

184 posts

Correct reply

16 solutions
Top badges earned
Contributor 2
Applaud 25
Validate 50
Validate 25
Validate 10
View profile
Dinu_Arya
Level 4

15-10-2015

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

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,409 likes

Total Posts

12,671 posts

Correct reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,409 likes

Total Posts

12,671 posts

Correct reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile
smacdonald2008
Level 10

15-10-2015

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