Dynamic path and resourcetype in data-sly-resource
Hi,
I have a requirement where I am including a data-sly-resource within a data-sly-list. I want the path of every resource to be different i.e. use an index or sightly use variable as well as the component should be referenced from the use api.
<data-sly-list.item="${class.list}">
<div data-sly-resource="${@path='par${item.name}', resourceType='${item.componentPath}'}></div>
</div>
I could do this using cq:include in jsp.
I am not sure if a sightly variable/tag can be used within another sightly tag.
What I am trying to is have a multifield widget that accepts resourceType from the author. I should be able to reorder the included components. Can you let me know if there is any other way to achieve this?
