Legacy Knowledge Base
Published Jul. 2, 2025

On sites with only Private Pages, stylebooks with a custom theme do not work

Written By

Kanchan Bisht

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

  • The categories and tokens for the custom theme are not available in the stylebook editor
    Steps to reproduce:
    1) Deploy a theme that includes custom stylebook categories (https://github.com/lfrsales/73-formed-theme).
    2) Create a new Site.
    3) Add a private page to the site and publish it.
    4) Assign the custom theme to the private page.
    5) Create a new stylebook.
    Expected Behavior: The categories and tokens for the custom theme are available in the stylebook editor.
    Observed Behavior: The custom theme's categories and tokens are not available in the stylebook editor. The categories and tokens are available once a public page has been created.

Environment

  • Liferay DXP 7.3

Resolution

Additional Information

  • LPS-121611
  • The following is applied as a result of this fix:
    When changing a theme of a specific page, the following message is shown in the 'look and feel' settings and Page Design Options panel

    This page is using a different theme than the one set for public pages. Note that style books will only be available for pages that use the theme set in public pages.

    When changing the theme of the Private Page, the following message is shown in the 'look and feel' settings.

    Private pages is using a different theme than the one set for public pages. Note that style books will only be available for pages that use the theme set in public pages.

    The following message is shown in the stylebook editor sidebar

    This token definition belongs to the theme set for public pages.
Did this article resolve your issue ?

Legacy Knowledge Base