Hi,
On Tue, 2017-01-10 at 18:29 -0700, lancedolan wrote:
> All I want to do is print out a resource's children resources.
Using the HTL repl [1] I narrowed down the following way of listing
child resources:
template.html
-------------
<html>
<head>
<title>${properties.jcr:title}</title>
<meta charset="utf-8">
</head>
<body data-sly-use.obj="logic.js">
<p>My siblings are:
<ul data-sly-list.child="${obj.siblings}">
<li>${child.name}</li>
</ul>
</p>
</body>
</html>
logic.js
--------
use(function () {
return {
siblings: resource.getParent().getChildren()
};
});
I don't know enough about the HTL Javascript Use API to see what is
wrong in your particular example unfortunately.
Robert
[1]: http://localhost:8080/htl/repl.html