Hi,I have a basic example in sightly which is as below: In the logs the value of string 'value' gets printed but in the page it is not getting printed. Please let me know how to achieve this<div data-sly-use.component="com.adobe.cq.Component"><p> from java resource: ${component.value}</p></div>In my...
In JSP the below lines gives the node jcr:content, how to achieve similar thing in sightly. How to get Page from Node and iterate through the pages in sightly?? Can you please help. String path = "/content/usergenerated/jcr:content"; Node node = currentPage.getContentResource().adaptTo(Node.clas...
Hi,Can anyone post a sample code in sightly which contains getting a node from page, resource resolver , session variable, page to node conversion so that one can understand. Please help.
Thanks for your mail. The below two lines are not giving me node name. In jsp it works, but not in sightly. Can you please share a sample code which has node conversion, page conversion etc.node = currentPage.getContentResource().adaptTo(Node.class); title = node.getName();
Hi,I am using the below code to print list children items on page, but it's not working. Can anyone please suggest how to achieve this?<ul data-sly-list.child="${currentPage.listChildren}"> entering <li>${child.title}</li></ul>Regards