On 3/13/08, Bertrand Delacretaz <[EMAIL PROTECTED]> wrote:
> On Thu, Mar 13, 2008 at 1:54 PM, Felix Meschberger <[EMAIL PROTECTED]> wrote:
>  >  >... Also, is there any documentation somewhere, on the variables that are
>
> >  > available for scripting?
>  >  The only "documentation" so far is the constants defined in the
> >  SlingBindings class....
>  And the tests: the .esp and .ecma scripts under
>  
> http://svn.apache.org/repos/asf/incubator/sling/trunk/launchpad/webapp/src/test/resources/integration-test/
>
>  provide some additional examples.

Thank you both, that's helpful.

Now, let's say I have a child iterator:
var iterator = resource.resourceResolver.listChildren(r);

... and I know that the children will be JCR nodes, how can I output
(e.g.) the title attribute of all child nodes?

As you may have suspected, I'd want to produce a menu, like
<ul>
  <li><a href="child1">Title of child 1</a></li>
  <li><a href="child2">Title of child 2</a></li>
 ...
</ul>


-- 
Vidar S. Ramdal <[EMAIL PROTECTED]> - http://www.idium.no
Akersgata 16, N-0158 Oslo, Norway

Reply via email to