Level 1
Level 2
Sign in to Community
Learn more
Sign in to view all badges
Expand my Community achievements bar.
I am new for HTL,
below code works on JSP. How to achieve in sightly
currentPage.getContentResource("pagecontent/issue")
please help me how to read the property from "pagecontent/issue" node. The targeted node is issue.
Thanks in advance
Solved! Go to Solution.
@Hemant Arora : thanks for your reply.
The correct and short answer is
${pageProperties['pagecontent/issue']}
View solution in original post
Create a component.js and include that in your sightly html and then use the javascript-use api to get the content resource and assign it to a variable and use that variable in sightly. Refer to this example https://helpx.adobe.com/experience-manager/htl/using/use-api-javascript.html
Views
Likes
Replies