Sightly: list child nodes (+ error in docs?)
Hi,
I'm trying to list the child nodes of my current component's node and display their properties. This is my code:
<dl data-sly-list.slide="${currentNode.getNodes}"> <dt>index: ${slideList.index}</dt> <dd>title: ${slide.title}</dd> </dl>It spits out the index correctly and when I do ${slide.path}, the path is correct as well. However, ${slide.title} and any other properties always remain empty, even though they do have values in the CRX.
Also for the docs [1], the last paragraph seems to have an error:
<dl data-sly-list.child="${myObj}"> <dt>key: ${item}</dt> <dd>value: ${myObj[item]}</dd> </dl>My understanding is that if you use ".child" (or any other name) that replaces the "item", doesn't it?
Thanks,
Paul
[1] http://docs.adobe.com/docs/en/aem/6-0/develop/sightly.html#list