Legacy Knowledge Base
公開されました Sep. 10, 2025

Layout Templates Appear in the Themes Section

Written By

Daniel Martinez Cisneros

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

You are viewing an article from our legacy "FastTrack" publication program, made available for informational purposes. Articles in this program were published without a requirement for independent editing or verification and are provided"as is" without guarantee.

Before using any information from this article, independently verify its suitability for your situation and project.

Issue

  • After an upgrade, custom layout templates (layouttpl) are incorrectly displayed in the "Themes" section of the page configuration.
  • This occurs because the generated .war file for the layout template project contains a liferay-look-and-feel.xml file, which causes Liferay to classify it as a theme.

Environment

  • Liferay DXP 2025.Q1

Resolution

The issue is caused by the layout template project being located in the /themes directory of the Liferay Workspace. When a project is in this directory, the Gradle build process may incorrectly treat it as a theme and automatically generate the liferay-look-and-feel.xml file during compilation.

To resolve this, follow these steps:

  1. Move the layout template project from the /themes directory to the /modules directory in your Liferay Workspace.
  2. Rebuild and redeploy the project.

After redeploying, the layout template will no longer be classified as a theme and will appear correctly in the layout selection area.

 

 

Did this article resolve your issue ?

Legacy Knowledge Base