Expand my Community achievements bar.

Get first element of a bean list in sightly : AEM 6.2

Avatar

Level 8

Hi All,

Suppose I have a bean class Sample.java, which in turn has one attribute private List<Image> images. The Image.java has private String url. I want to read only the first url property of the list in my sightly file.

Any thoughts/pointers/reference code on how to do this will be really helpful.

0 Replies