Hi,
I can follow the code examples and reference web pages for guidance on how to write javascript to back Sightly html. However, I am not clear on where the code documentation is to reference when authoring such javascript. Are there server-side javascript documents akin to the Sightly javadocs?
Solved! Go to Solution.
Views
Replies
Total Likes
Here are the Sightly docs:
http://docs.adobe.com/content/docs/en/aem/6-0/develop/sightly.html
https://docs.adobe.com/docs/en/aem/6-0/develop/sightly/use-api-in-java.html
Here is a community article that you can follow to build a Sightly component for AEM:
Creating your first Adobe Experience Manager Sightly component
In this article - there is a Java part of the Sightly comment. It uses com.adobe.cq.sightly.WCMUse. This is documented here:
https://docs.adobe.com/docs/en/aem/6-0/develop/ref/javadoc/com/adobe/cq/sightly/WCMUse.html
Views
Replies
Total Likes
Here are the Sightly docs:
http://docs.adobe.com/content/docs/en/aem/6-0/develop/sightly.html
https://docs.adobe.com/docs/en/aem/6-0/develop/sightly/use-api-in-java.html
Here is a community article that you can follow to build a Sightly component for AEM:
Creating your first Adobe Experience Manager Sightly component
In this article - there is a Java part of the Sightly comment. It uses com.adobe.cq.sightly.WCMUse. This is documented here:
https://docs.adobe.com/docs/en/aem/6-0/develop/ref/javadoc/com/adobe/cq/sightly/WCMUse.html
Views
Replies
Total Likes
Views
Replies
Total Likes
Many thanks both for the replies. I've found, read and used all the pages linked to above.
My question arises from the following development scenario:
I wondered, if the javascript objects are all backed by Java, then can I read the javadocs that correspond to the global objects - and assume that all the methods on those Java classes or interfaces will be available in javascript? But that doesn't quite seem to be the case.
Views
Replies
Total Likes
dorianhallward wrote...
But what javascript functions (methods) are available to me on granite.currentNode?
current node refers to the JCR node - documented here:
http://www.day.com/maven/jsr170/javadocs/jcr-2.0/javax/jcr/Node.html
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies