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

All web-content structures are loaded on a display page for an associated web-content article

    Details

    • Fix Priority:
      5

      Description

      Steps to Reproduce:

      1. Create a new web-content structure.
      2. Create a display page for the web-content structure just created.
      3. Set the display page as the default display page. (just map the title)
      4. Create a web-content article for the new structure.
      5. Add an asset publisher to a page and configure it to show the web-content you created and to link to the display page.
      6. Navigate to the display page for your web-content. 
      7. Create a web-content template for your structure. Include a variable that does not exist so it will throw an error when rendered. `${thisIsNotARealVar}`
      8. Navigate back to the display page and check the application server logs.

      Expected Result:

      • No error should be displayed in the application server logs because the display page is not rendering the template that contains the error.

      Actual Result:

      • The Logs contain the following error:
      • FreeMarker template error:The following has evaluated to null or missing:==> thisIsNotARealVar in template "20097#20123#60645" at line 8, column 21 
      • This takes place because all templates associated with a web-content structure are loaded when rendering a display page, whether they are used or not.

       

      Initially discussed on slack.

       

        Attachments

          Activity

            People

            Assignee:
            support-lep@liferay.com SE Support
            Reporter:
            evan.thibodeau Evan Thibodeau
            Participants of an Issue:
            Recent user:
            Jayda Wu
            Engineering Assignee:
            Pavel Savinov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Days since last comment:
              14 weeks ago

                Packages

                Version Package