Get page description from page url
Hello,
I have a list of page url-s. For each of them I have to get the page description. Is there any ready API to send the page url from JS in order to get the page description? Or should I create an API? Thanks!
Hello,
I have a list of page url-s. For each of them I have to get the page description. Is there any ready API to send the page url from JS in order to get the page description? Or should I create an API? Thanks!
Hi @ad-engineer -
I assume, you are referring to the description stored on the page in jcr:content node.
If yes, you can retrieve it in javascript by accessing the path over HTTP or Ajax call in the format %page_path%/jcr:content.json.
Ex: /content/we-retail/language-masters/en/men/jcr:content.json for the page content/we-retail/language-masters/en/men.html
This gives the completed information present on the node along with description in json format.
Thanks,
Fani
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.