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

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.
这篇文章有帮助吗?
0 人中有 0 人觉得有帮助