Diese Konversation wurde aufgrund von Inaktivität geschlossen. Bitte erstellen Sie einen neuen Post.
Level 1
Level 2
Melden Sie sich an, um alle Badges zu sehen
Diese Konversation wurde aufgrund von Inaktivität geschlossen. Bitte erstellen Sie einen neuen Post.
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?
Gelöst! Gehe zu Lösung.
Zugriffe
Antworten
Likes gesamt
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
Zugriffe
Antworten
Likes gesamt
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
Zugriffe
Antworten
Likes gesamt
Zugriffe
Antworten
Likes gesamt
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.
Zugriffe
Antworten
Likes gesamt
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
Zugriffe
Antworten
Likes gesamt