I am getting a list from back end, and reading in sightly and displaying on the page.
But now I want to insert a value before the last one like below
I am not able to break the list can anyone help me in this.
Thanks in advance
if you want to manipulate the order of values you need to use Sling Model.
Sightly was introduced in order to ensure a develop MVC compliant, so if you need to manipulate data you need to move your logic into a Sling Model and then render your list in sightly.
Please find here some references:
Adobe Experience Manager Help | Working with Sling Models in Adobe Experience Manager
Adobe Experience Manager Help | Creating Adobe Experience Manager 6.3 Sling Model Components
Apache Sling :: Sling Models
you can't manipulate data directly in Sightly. Only testing and listing statement are available: HTL Block Statements
Can we manuplate the data with sightly..