【发布时间】:2016-01-29 20:17:36
【问题描述】:
我将 Sightly 与 Sling 8(不是 AEM)一起使用。我有以下模板:
<div data-sly-list.child="${resource.listChildren}">
${child.name} | ${child.path} | ${child.properties['jcr:title'] || 'no title'}
</div>
输出(对于单个孩子)是
hello_world | /content/blog/posts/hello_world | no title
我知道子资源上有一个 jcr:title 属性,因为我已使用 HTTP 调用确认它。
如何访问child 对象的属性?
【问题讨论】: