PUBLIC - Liferay Portal Community Edition
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-27195

When creating a page using a page template there should be a checkbox to choose whether to propagate changes or not

    Details

    • Branch Version/s:
      6.1.x
    • Backported to Branch:
      Committed
    • Fix Priority:
      3
    • Similar Issues:
      Show 5 results 

      Description

      By default, when a page is created by using a page template, the propagation of changes from a site template is enabled. While this is desired in some cases, in some other it is not and it forces the site admin to disable it by going to Manage > Page for every page created.

      To avoid this the following options should be added:
      1) When adding a page from the pages management UI, if a page template is chosen, a checkbox should be shown to enable or disable propagation of changes
      2) A portal property should be provided to allow setting the default value of the property. This property will be specially useful for sites which create most of their pages through the shortcut in the dock bar Add > Page which shows a very simple UI and thus a checkbox does not currently fit.

        Issue Links

          Activity

          Hide
          Jorge Ferrer added a comment -

          It is worth mentioning that right now the EditLayoutsAction class hardcodes the value of prototypeLayoutLinkEnabled to true. If it is set to false, then the creation of the page from the page template should be done immediately instead of lazily. As an example of this it is recommended to check how this is solved when creating a site from a site template when propagation is disabled (see EditGroupAction and SitesUtil.updateLayoutSetPrototypesLinks()).

          Show
          Jorge Ferrer added a comment - It is worth mentioning that right now the EditLayoutsAction class hardcodes the value of prototypeLayoutLinkEnabled to true. If it is set to false, then the creation of the page from the page template should be done immediately instead of lazily. As an example of this it is recommended to check how this is solved when creating a site from a site template when propagation is disabled (see EditGroupAction and SitesUtil.updateLayoutSetPrototypesLinks()).
          Hide
          Michael Saechang added a comment -

          Committed on:
          Portal 6.1.x CE GIT ID: fd6a5d0b5d168251f6e8e120470fefec4b462b0e.
          Portal 6.2.x GIT ID: f4741e7174635ab942f3ea59197ca2702c115839.

          Show
          Michael Saechang added a comment - Committed on: Portal 6.1.x CE GIT ID: fd6a5d0b5d168251f6e8e120470fefec4b462b0e. Portal 6.2.x GIT ID: f4741e7174635ab942f3ea59197ca2702c115839.
          Hide
          Serena Song (Inactive) added a comment - - edited

          PASSED Manual Testing using the following steps:

          1. Navigate to portal-ext.properties.
          2. Copy "layout.prototype.link.enabled.default=false" to the ext file.
          3. Start Liferay Portal.
          4. Manage ->Page.
          5. Add page -> select a Page Template.

          Reproduced on:
          Tomcat 7.0 + MySQL 5. Portal 6.2.x GIT ID: c79b42690caea466429ef04c33536ebdc7ab5ceb.

          When creating a page using a page template, it will propagate changes to a page from its page template by default.

          Fixed on:
          Tomcat 7.0 + MySQL 5. Portal 6.1.x EE GIT ID: 844a9390cfc57ce5d12770d26ac9f09f42a9afd4.
          Tomcat 7.0 + MySQL 5. Portal 6.2.x GIT ID: e1fdb0fa6c7cbad2f8f322d24fe872766257aff0.

          It will show "Automatically apply changes done to the page template" checkbox to choose whether to propagate changes or not.

          Show
          Serena Song (Inactive) added a comment - - edited PASSED Manual Testing using the following steps: 1. Navigate to portal-ext.properties. 2. Copy "layout.prototype.link.enabled.default=false" to the ext file. 3. Start Liferay Portal. 4. Manage ->Page. 5. Add page -> select a Page Template. Reproduced on: Tomcat 7.0 + MySQL 5. Portal 6.2.x GIT ID: c79b42690caea466429ef04c33536ebdc7ab5ceb. When creating a page using a page template, it will propagate changes to a page from its page template by default. Fixed on: Tomcat 7.0 + MySQL 5. Portal 6.1.x EE GIT ID: 844a9390cfc57ce5d12770d26ac9f09f42a9afd4. Tomcat 7.0 + MySQL 5. Portal 6.2.x GIT ID: e1fdb0fa6c7cbad2f8f322d24fe872766257aff0. It will show "Automatically apply changes done to the page template" checkbox to choose whether to propagate changes or not.

            People

            • Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                2 years, 31 weeks, 4 days ago

                Development

                  Structure Helper Panel