legacy-knowledge-base
公開されました Jun. 30, 2025

Override default freemarker error template

written-by

Giulianna Munoa

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

legacy-article

learn-legacy-article-disclaimer-text

Issue

  • You need to change the default behavior of the default freemarker template showing the entire error code and want to show a different template instead

Environment

  • Liferay DXP 7.2+

Resolution

portlet.display.templates.error[ftl]=[TOMCAT_HOME]/webapps/ROOT/WEB-INF/classes/portlet_display_template_error.ftl
portlet.display.templates.error[vm]=[TOMCAT_HOME]/webapps/ROOT/WEB-INF/classes/portlet_display_template_error.vm
  • Restart your Liferay bundle and check.

Additional information

did-this-article-resolve-your-issue

legacy-knowledge-base