Skip to content

Tag: sightly

Can I add html component every two elements of a list from Java model using Sighlty?

I need to iterate every two elements of a list from model Java using Slightly. So I can add html components every two elements. Can you help me, please? Answer According to the HTL specification: An additional itemList (respectively <variable>List in case a custom identifier/variable was defined using data-sly-list.) identifier is also available within the scope, with the following members: