


Based on HTL documentation HTL Block Statements
itemList: Object holding the following properties:
data-sly-test="${itemList.last}" -> Check for the last item, however in my use case, I would need to check for the 2nd last item. Is there a ${itemList.count} in reverse order? In CSS, there is selector :nth-last-of-type(-n+2) for last 2 items.
Thanks in advance.
Views
Replies
Sign in to like this content
Total Likes
For reversing the array list, we can use below in java and use the list in iterating.
Collections.reverse(arrayList)
I used above code in displaying last added property first in multi field
Views
Replies
Sign in to like this content
Total Likes
For reversing the array list, we can use below in java and use the list in iterating.
Collections.reverse(arrayList)
I used above code in displaying last added property first in multi field
Views
Replies
Sign in to like this content
Total Likes