Hi All,
I need to add parsys in html as many times as my loop runs. Below is my code that is not working.
Parsys is a list with values par1, par2, par3 and so on.
<sly data-sly-list.parsys="${accordian.accordianParsys}" data-sly-unwrap>
${parsys}
<div data-sly-resource="${@path='${parsys}', resourceType='foundation/components/parsys'}"></div>
</sly>
Please advise.
Thanks,
Pradeep
Solved! Go to Solution.
Views
Replies
Total Likes
It worked like below
<sly data-sly-list.parsys="${accordian.accordianSections}" data-sly-unwrap>
<div data-sly-resource="${@path=parsys, resourceType='foundation/components/parsys'}"></div>
</sly>
Views
Replies
Total Likes
It worked like below
<sly data-sly-list.parsys="${accordian.accordianSections}" data-sly-unwrap>
<div data-sly-resource="${@path=parsys, resourceType='foundation/components/parsys'}"></div>
</sly>
Views
Replies
Total Likes
Hi Pradeep,
Please mark it as solved :)
Thanks.
Ratna,
Views
Replies
Total Likes
How to mark it solved? I couldn't find option 'solved'.
Views
Replies
Total Likes
This is also a great use-case for data-sly-repeat, no need for the wrapping <sly> element.
Views
Replies
Total Likes
Views
Likes
Replies