What are the conditions to decide if a page inherits its theme?

Issue

  • The UI allows you to determine whether a page inherits its parent's theme or has a custom theme applied.
  • However, the Layout table does not contain a field specifying theme inheritance.
  • Then, what criteria are used to determine theme inheritance for a page?

Environment

  • Liferay DXP 2024.Q2

Resolution

  • Have a look at the [ENTITY]Impl.java class, i.e., LayoutImpl.java.
  • There you can find this method: isInheritLookAndFeel(). See LayoutImpl.java#L1172-L1188.
  • As you can see, both themeId and colorSchemeId fields are considered.
¿Fue útil este artículo?
Usuarios a los que les pareció útil: 0 de 0