Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

CQ.HTTP.get equivalent in Granite UI and beforedelete listener in touch UI not working

Avatar

Level 1

In our project we are using CQ.HTTP.get for fetching page properties by passing relative path of the page in cq:editConfig cq:listeners under beforedelete event in CQ 5.6 version, but this is not working in touch UI and throwing error CQ.HTTP.get is not defined in editor.js file. What is the equivalent in granite UI for fetching page properties similar to CQ.HTTP.get something like Granite.HTTP.get ? Also passing return false in beforedelete is still deleting the node in touch ui mode.

1 Accepted Solution

Avatar

Correct answer by
Level 10

Are you following online documentation that informs you to use CQ.HTTP.get to fetch page properties. A better way to retrieve page properties is to use the Sling API:

https://helpx.adobe.com/experience-manager/using/using-sling-apis.html 

View solution in original post

1 Reply

Avatar

Correct answer by
Level 10

Are you following online documentation that informs you to use CQ.HTTP.get to fetch page properties. A better way to retrieve page properties is to use the Sling API:

https://helpx.adobe.com/experience-manager/using/using-sling-apis.html