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']}
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
@Hemant Arora : thanks for your reply.
The correct and short answer is
${pageProperties['pagecontent/issue']}
Views
Likes
Replies
Views
Like
Replies