Re: Sightly :: JavaScript Use-API :: what property to use instead of "granite.resource" to access the current resource in JS?

2015-10-18 Thread Sandro Boehme
After a fresh checkout and build it works now so everything is fine. Best, Sandro Am 18.10.15 um 12:15 schrieb Sandro Boehme: Thanks for your feedback Vlad and Dirk and for your initiative creating the Sightly docu Vlad! Sadly for some reason "properties", "resource" and

Re: Sightly :: JavaScript Use-API :: what property to use instead of "granite.resource" to access the current resource in JS?

2015-10-18 Thread Sandro Boehme
Thanks for your feedback Vlad and Dirk and for your initiative creating the Sightly docu Vlad! Sadly for some reason "properties", "resource" and "request.getResource()" return an empty object {}. Does anyone know what the reason could be? Best, Sandro Am 18.10.15 um 09:55 schrieb Dirk

Re: Sightly :: JavaScript Use-API :: what property to use instead of "granite.resource" to access the current resource in JS?

2015-10-17 Thread Vlad Bailescu
Hi Sandro, I started putting together some documentation at [2] but it's stil WIP. Vlad [2] - https://github.com/vladbailescu/sling-sightly-docs/blob/master/use-api.md On Sunday, October 18, 2015, Sandro Boehme wrote: > Hello, > > I would like to access the current

Sightly :: JavaScript Use-API :: what property to use instead of "granite.resource" to access the current resource in JS?

2015-10-17 Thread Sandro Boehme
Hello, I would like to access the current resource in the Sightly JavaScript Use-API. The docu [1] says I should for example use "granite.resource.properties["title"];" to access the "title" property of the current resource. But of course "granite" is not available in Sling. This is why I'm