I an unable to find the JSP or the JS file which renders the sites.html page. I need to redirect to this page with a click of a button and perform certain actions on sites.html page when coming via that button click. If anyone knows this, kindly reply asap
Solved! Go to Solution.
Views
Replies
Total Likes
Hello Monu,
Yes, from the resource you can get to the jcr:content node(/libs/wcm/core/content/sites/jcr:content) you can find out sling:resourceType = granite/ui/components/foundation/page that generates this page:
Inside the
/libs/granite/ui/components/foundation/page
You may find out that
/page.jsp actually generates the page, This is the jsp you are probably willing to overlay.
But, overlaying foundation with custom logic will bring troubles later down the line when the time for the upgrade kicks in.
Thanks,
Peter
Views
Replies
Total Likes
Hey Monu,
JcrNodeResource, type=cq:Page, superType=null, path=/libs/wcm/core/content/sites
You can check it yourself from: http://localhost:4502/system/console/jcrresolver?msg=JcrNodeResource%2C+type%3Dcq%3APage%2C+superTyp...
Thanks,
Peter
Views
Replies
Total Likes
PuzanovsP wrote...
Hey Monu,
JcrNodeResource, type=cq:Page, superType=null, path=/libs/wcm/core/content/sites
You can check it yourself from: http://localhost:4502/system/console/jcrresolver?msg=JcrNodeResource%2C+type%3Dcq%3APage%2C+superTyp...
Thanks,
Peter
Thanks Peter for this information. But I needed the jsp file which renders this page or pages continuing it. You have provided with the node structure of it.
Views
Replies
Total Likes
Hi,
You can easily write your code in /etc/clientlibs/granite/utils.js
(function() {p = window.location.pathname; if(p.startsWith("/sites.html")) doSomething(); })();
Views
Replies
Total Likes
Hello Monu,
Yes, from the resource you can get to the jcr:content node(/libs/wcm/core/content/sites/jcr:content) you can find out sling:resourceType = granite/ui/components/foundation/page that generates this page:
Inside the
/libs/granite/ui/components/foundation/page
You may find out that
/page.jsp actually generates the page, This is the jsp you are probably willing to overlay.
But, overlaying foundation with custom logic will bring troubles later down the line when the time for the upgrade kicks in.
Thanks,
Peter
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies