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

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

Avatar

Level 7

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?

1 Accepted Solution

Avatar

Correct answer by
Employee
2 Replies

Avatar

Correct answer by
Employee

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).

Avatar

Level 10

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?