Is there a way to customize the Sling error handler to serve cq:Page pages rather than plain JSPs? | Community
Skip to main content
LinearGradient
Level 6
October 16, 2015
Solved

Is there a way to customize the Sling error handler to serve cq:Page pages rather than plain JSPs?

  • October 16, 2015
  • 2 replies
  • 833 views

We have a layout that we want to use in a few different places as well as for Sling error handler pages.

Outside Sling error handler, we are using a cq:Pages together with a page component to reuse the template.

Is there a way to configure the Sling error handler to use cq:Pages in a similar way, rather than serving JSP pages?

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 JustinEd3

Take a look at http://adobe-consulting-services.github.io/acs-aem-commons/features/errorpagehandler.html

I think it does exactly what you're looking for (and more).

2 replies

JustinEd3Adobe EmployeeAccepted solution
Adobe Employee
October 16, 2015

Take a look at http://adobe-consulting-services.github.io/acs-aem-commons/features/errorpagehandler.html

I think it does exactly what you're looking for (and more).

smacdonald2008
Level 10
October 16, 2015

A cq:page is a node (that depicts a page). See this topic:

http://dev.day.com/docs/en/cq/current/developing/templates.html

Part of that node is the JSP that specifies the content of the page. I am not quite sure what you are looking to do. You want sling to serve the cq;page - not the JSP that specifies the content of the page?