Expand my Community achievements bar.

How can we create custom error pages in AEM? | AEM Community Blog Seeding

Avatar

Administrator

BlogImage.jpg

How can we create custom error pages in AEM? by SHIVAM KUMAR CHAUHAN

Abstract

How can we create custom error pages in AEM?
->For creating the custom error pages in our project we can use the acs commons utility to handle error pages.
->For this, you need to upload the ACS commons package in the crx.
-> After that, you need to overlay the sling folder present in the libs folder as shown below. We only need to overlay the required files.

You need to update default.jsp and 404.jsp with the text shown below.

Add this in 404.jsp.
<%@page session=”false”%><%

%><%@include file=”/apps/acs-commons/components/utilities/errorpagehandler/404.jsp” %>

Add this in default.jsp

<%@page session=”false”%><%

%><%@include file=”/apps/acs-commons/components/utilities/errorpagehandler/default.jsp” %>

Create the tab with the path browser field in it in the page component present in your project.
First, you need to add a path browser field in page properties. To add those you can edit the dialog of the page component as shown below.

Read Full Blog

How can we create custom error pages in AEM?

Q&A

Please use this thread to ask the related questions.



Kautuk Sahni
0 Replies