Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-68319

Theme Contributors does not override the default theme

Details

    • Bug
    • Status: Closed
    • Resolution: Won't Fix
    • 7.0.0 DXP FP4, 7.0.0 DXP SP1
    • None
    • Themes Infrastructure
    • None

    Description

      Summary
      It seems that there is a problem with the Theme Contributor and its ability to override changes to the default theme. To give background into this issue, while attempting to use product-navigation-control-menu-dxp-theme-contributor to replace the Control Menu's gradient to a different design, the new build does not reflect the design after deploying it to the Liferay environment.

      Please be advised that this issue has been identified while trying to follow the dev.liferay.com guide on Theme Contributors: https://dev.liferay.com/develop/tutorials/-/knowledge_base/7-0/theme-contributors (section on EDITING THEME CONTRIBUTORS).

      Steps to Reproduce
      1. Obtain the latest build of ee-7.0.x, and perform ant all to build an ee-7.0.x bundle – Start up the server, and keep it running while we perform the next steps

      2. Locate /liferay-portal-ee/modules/private/apps/web-experience/product-navigation/product-navigation-control-menu-dxp-theme-contributor/src/main/resources/META-INF/resources/control_menu/_control_menu.scss and open this file in a text editor
      _nameplates.
      3. Locate line 35 which will read as follows:

      @include linear-gradient(to right, $control-menu-level-1-bg, $control-menu-level-2-bg, $fallback: $control-menu-level-1-bg);

      4. Replace it with

      @include linear-gradient(to right, #990000, #880000, $fallback: #990000);

      and then save the file

      5. In Terminal/Command Prompt, navigate to /liferay-portal-ee/modules/private/apps/web-experience/product-navigation/product-navigation-control-menu-dxp-theme-contributor

      6. Run ../../../../../../gradlew build to start the build

      7. Once the build has been successful, navigate to /liferay-portal-ee/tools/sdk/dist, and notice that com.liferay.product.navigation.control.menu.dxp.theme.contributor-1.0.5.jar has been created

      8. Copy com.liferay.product.navigation.control.menu.dxp.theme.contributor-1.0.5.jar to $liferay.home/deploy

      9. Once com.liferay.product.navigation.control.menu.dxp.theme.contributor-1.0.5.jar has been fully deployed, open up the browser to Liferay hostname (e.g. http://localhost:8080)

      10. Sign in as [email protected]

      Expected Result
      Control Menu bar will be red, indicating that the Theme Contributor has overridden the default OOTB theme.

      Actual Result
      Control Menu is the default theme indicating that the changes did not reflect in Liferay

      Reproduced in

      • ee-7.0.x commit 94db9f0418086df751fb837cf2ac14c70ca0d056
      • 7.0 DE DXP + Fix Pack 4

      Attachments

        Activity

          People

            support-lep@liferay.com SE Support
            brian.suh Brian Suh
            Kiyoshi Lee Kiyoshi Lee
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              6 years, 6 weeks, 4 days ago

              Packages

                Version Package