Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

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.

0 Replies