I want to access one sightly variable in another sightly object .
Eg :
i have one sightly variable ${temp} which is an integer
I want to use the above variable in sightly array variables ${variable.arrayObj[${temp}]}
Is there any i can access ${temp} with the array object ?
Solved! Go to Solution.
Views
Replies
Total Likes
this works for me..:
<div data-sly-list="${[0,1]}">
item ${item} value ${properties.cq:tags[item]}<br/>
</div>
Views
Replies
Total Likes
can you try ${variable.arrayObj[temp]}
Views
Replies
Total Likes
have u tried following ${variable.arrayObj[temp]} ?
- Runal
Views
Replies
Total Likes
${variable.arrayObj[temp]} did not work
Views
Replies
Total Likes
It didnt work
Views
Replies
Total Likes
this works for me..:
<div data-sly-list="${[0,1]}">
item ${item} value ${properties.cq:tags[item]}<br/>
</div>
Views
Replies
Total Likes
Views
Likes
Replies