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

Portlet embedded in web content FreeMarker template does not display until template is updated

    Details

    • Fix Priority:
      3

      Description

      Steps to reproduce issue:

      1. Navigate to Content > Web Content
      2. In the kebab menu, select "Structures"
      3. Add a web content structure with a Text field
      4. Add a template for the above structure
        • Select "Freemarker (.ftl)" to be the template language
        • In the template editor, embed the Currency Converter portlet as follows:
          <@liferay_portlet["runtime"] portletName="com_liferay_currency_converter_web_portlet_CurrencyConverterPortlet" />
          
        • Save the template
      5. Navigate to Content > Web Content
      6. Add a web content article using the structured content
        • Provide a title field
        • Publish the article
      7. Navigate to the Welcome page
      8. Add the article onto the page

      Expected result: Currency Converter portlet displays on the page within the Web Content Display portlet
      Actual result: Currency Convert portlet does not display; only the title of the article displays. Editing the template from the Web Content Display portlet and saving the edit displays the Currency Converter portlet correctly.

      Reproduced on:
      Tomcat 8.0.32 + MySQL 5.7
      Portal Master GIT ID: c4e23b082cb4899c3af79da0d411012c7ee98603

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              anthony.chu Anthony Chu
              Reporter:
              anthony.chu Anthony Chu
              Participants of an Issue:
              Recent user:
              Marta Elicegui
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                3 years, 46 weeks, 5 days ago

                  Packages

                  Version Package