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

Portlet's Look and Feel generates incorrect portlet id

    Details

      Description

      Issue
      In a portlet's Advanced Styling > Advanced Styling, incomplete portlet id is displayed. Also, Add a CSS rule for this portlet. link generates incomplete portlet id selector into Enter your custom CSS. textarea.

      Steps to reproduce

      1. Open a portlet's Look and Feel Configuration
      2. Click on Advanced Styling tab
      3. Click on Add a CSS rule for this portlet. tab

      Actual results
      In Advanced Styling tab, incomplete portlet id is displayed and Add a CSS rule for this portlet. link generates incomplete portlet id selector into Enter your custom CSS. textarea.
      e.g.

      Actual portlet id Expected portlet id
      #com_liferay_nested_portlets_web_portlet_NestedPortletsPortlet_INSTANCE_n1x0gYJhVrH1 #portlet_com_liferay_nested_portlets_web_portlet_NestedPortletsPortlet_INSTANCE_n1x0gYJhVrH1

      Note that the actual portlet id is lack of prefix "portlet_".

      Expected results
      Completed portlet id that has prefix "portlet_" should be generated and displayed.

      Reproduced in:
      DXP + DE-11
      ee-7.0.x 223fae27fb40642fa80cc2c01f726fb6fd0c079c
      master bf6c7951e2c29fcc72b415ca918e13dad3459361

        Attachments

        1. 1.jpg
          1.jpg
          14 kB
        2. 2.jpg
          2.jpg
          14 kB
        3. fail.png
          fail.png
          40 kB
        4. screenshot-1.png
          screenshot-1.png
          127 kB

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                2 years, 18 weeks ago

                Packages

                Version Package
                7.0.0 DXP FP12
                7.0.0 DXP SP2
                7.0.3 CE GA4
                Master