CQ.HTTP.get equivalent in Granite UI and beforedelete listener in touch UI not working | Community
Skip to main content
ravi_pampana1
November 21, 2015
Solved

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

  • November 21, 2015
  • 1 reply
  • 1523 views

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.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by smacdonald2008

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 

1 reply

smacdonald2008
smacdonald2008Accepted solution
Level 10
November 21, 2015

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