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

Page layout template association cannot be changed if the current template is missing

    Details

      Description

      The issue is about a very rare, however, possible scenario, when the referenced LayoutTemplate (Page Layout) (for example: 2 Columns (70/30)) is missing. Now, a user is unable to change the template for a page (Layout) that uses a missing template.

      For example, after an upgrade, it can take more time for users to upgrade their custom themes & templates, thus, to overcome this, it can happen they want to change the template associations to an available one temporarily.

      Here are the steps to reproduce the annoying problem:
      1- Start portal
      2- Edit "Welcome" page through the side bar
      3- Change template to 2 Columns (50/50)
      4- Save
      5- Stop portal

      6- Navigate to $TOMCAT_HOME/webapps/ROOT/WEB-INF
      7- Edit liferay-layout-templates.xml: comment-out the "layout-template" element for 2 Columns (50/50). Save.

      8- Start portal
      9- Edit "Welcome" page through the side bar

      10- You can see that there is no "Template" selected as current one.
      11- Select another template
      12- Save

      Expected result
      New template should be saved.

      Actual result
      Page gets reloaded, but the layout is still the default one, defined in portal.props

      layout.default.template.id=2_columns_ii
      

      and the new template association has not been saved.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              felix.zhang Felix Zhang
              Reporter:
              tibor.lipusz Tibor Lipusz
              Participants of an Issue:
              Recent user:
              Marta Elicegui
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                7 years, 13 weeks, 6 days ago

                  Packages

                  Version Package
                  6.1.X EE
                  6.2.2 CE GA3
                  6.2.X EE
                  7.0.0 M1