Issue
- I have an issue with the master page style propagation to the Utility Page. I create a fragment with a style and I create a master page, then I add this fragment to it, then I create a Utility Page based on the master page. When we configure an existing Content Page with the Master Page, the fragment style is not propagated to the Page.
Reproduction Steps:
- Go to Design --> Fragments, add a Fragment Set, and create a basic fragment with the following configuration:
HTML: <div class="fragment_1"> Local fragment </div> CSS: .fragment_1 { color: red; } Javascript: console.log("Local fragment");
- Go to Design --> Page Templates and under Masters add a master page and add the above fragment to it, then publish it.
- Go to Site Builder --> Pages --> Utility Pages and add a Utility Page based on the new master page and add to it a Paragraph fragment with the text "404", and make sure that the Page is configured to use the new Master Page by going to the left panel --> Click the Page Design Options icon and select the new master page, then publish it
- Click on the kebab menu of the utility page and mark it as default.
Checkpoint: Type any non-existent URL, for example, http://localhost:8080/nonexistent, and see that the fragment from the master page appears (in red color). - Go to Site Builder --> Pages, click the kebab menu beside the Home Page, and configure it to use the new master page (from the left panel --> Page Design Options), then publish it.
- Hit the non-existent URL: http://localhost:8080/nonexist
Actual Result: The fragment appears but without the style color of the master fragment. Expected Result: The fragment appears with the style configured on the master page.
Environment
- Liferay DXP 7.4 Quarterly Release 2023.Q4.0
Resolution
- The issue has been fixed by https://liferay.atlassian.net/browse/LPS-203911. Please request a hotfix.
Contenido exclusivo para suscriptores.
Una Suscripción Enterprise de Liferay proporciona acceso a más de 1.500 artículos que incluyen las mejores practicas, diagnóstico de problemas y otras soluciones útiles. Inicia sesión para tener un acceso completo.
Inicia sesión