Help with accessing arrays using sightly with index
Hi,
I have 2 arrays question is multiitem and answer which is multi item again
I wanted to display answer under the question. I am trying to access question by index so that I can fetch corresponding answer
How can I do that with sightly?
<ul data-sly-list="${properties.question}">
<li>${ [ item ]}</li>
</ul>
<ul data-sly-list="${properties.answer}">
<li>${ [ item ]}</li>
</ul>
The above code displays all questions and displays all answers at the end of questions.
Thanks for your help!