Dear community,
I'm using multifield and a sling Model (for loop) to dynamically add content on my footer as below:
I wonder if it's possible to remove last separator (which is written in my html file) with HTL?
Or this can only be done in the Sling Model?
Thanks in advance!
Solved! Go to Solution.
Views
Replies
Total Likes
yes, In brief: check for the last child in the list and don't display it.
<sly data-sly-test="${!itemList.last}"><span class="link-separator"></span></sly>, here I am displaying the separator only if the list item is not the last one.
yes, In brief: check for the last child in the list and don't display it.
<sly data-sly-test="${!itemList.last}"><span class="link-separator"></span></sly>, here I am displaying the separator only if the list item is not the last one.
Views
Likes
Replies
Views
Likes
Replies
Views
Likes
Replies