Issue
- After an upgrade, custom layout templates (layouttpl) are incorrectly displayed in the "Themes" section of the page configuration.
- This occurs because the generated
.warfile for the layout template project contains aliferay-look-and-feel.xmlfile, 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:
- Move the layout template project from the
/themesdirectory to the/modulesdirectory in your Liferay Workspace. - 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.