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

Web Content articles created when there is no default display page template for the structure are not automatically assigned the display page template when one is created

    Details

      Description

      Setup

      1. Create an web content structure X (it can be simple, just one or two text fields)

      Steps to reproduce

      1. Create a web content article with structure X
        1. Leave the default value in the display page template selector (which should read "Default display page template"
      2. Go to Pages > Display Pages and create a display page template for structure X. Then mark it as the default for that structure.
      3. Check the display page template for the web content created in step 1. This can be done in several ways, but the easiest is from the list of web content use the action "View Content".

      Current behavior

      The "View Content" does not appear (or it's not using the new default display page template)

      Expected

      The new default display page template should be selected since the web content author never selected explicitly any other display page template or that no template was desired.

      Technical note

      This is happening because when creating the content, if there is no default display page template yet for the content, the association to the display page template is stored as "Not Template". Instead it should be stored as "Default Template" even if there isn't one (yet)

       

        Attachments

          Activity

            People

            • Assignee:
              brooke.dalton Brooke Dalton
              Reporter:
              jorge.ferrer Jorge Ferrer
              Participants of an Issue:
              Recent user:
              Clarissa Velazquez
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                9 weeks ago

                Packages

                Version Package
                7.2.10 DXP FP2
                7.2.10.1 DXP SP1
                7.2.X
                Master