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

CSS and JS not loaded when a portlet is embedded in a layout plugin

    Details

      Description

      when deploying a layout plugin with a portlet embedded, the CSS is not included in the header of the page. Thus the portlet is not displaying correctly.

      steps to reproduce
      1. deploy the attached portlet and layout plugin
      2. in welcome page add the tmpstatic portlet and notice the background is red
      3. inspect element of the page and notice the staticmain.css is loaded in the header
      4. remove the portlet
      5. go to control panel, pages and configure the welcome page to use tmpstatic layout
      6. go back to page and see portlet

      expected result
      portlet has red background and staticmain.css file is loaded into header

      actual result
      portlet's background is not changed and the staticmain.css is not loaded into header

      reproduced in
      master and 6.2.x

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              lu.liu Lu Liu
              Reporter:
              xinsui.zhao Xinsui Zhao (Inactive)
              Participants of an Issue:
              Recent user:
              Esther Sanz
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                6 years, 33 weeks ago

                  Packages

                  Version Package
                  6.2.2 CE GA3
                  6.2.X EE
                  7.0.0 M1