Sightly - List of Parsys
I have a case where I need to create a variable number of parsys in a Sightly component. Here's the code I am currently trying:
<div data-sly-list="${var.List}"> <div class="${item}"> <div data-sly-resource="${'field' + itemList.count @ resourceType='wcm/foundation/components/parsys'}"> </div> </div> </div>which is dying because it cannot parse the "+ itemList.count". If I take that part off, it only shows one of the two (or three) parsys as editable, but if I add a component to that parsys it will show up the number of times selected. Any ideas how to separate these parsys from each other? I would prefer to do it as part of a list, but could be persuaded otherwise if someone provided a good enough solution.
Thanks in advance!