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

Code snippets for list variables in template editor do not contain code for lists

    Details

      Description

      Steps to reproduce:

      1. Go to Site Admin > Configuration > Application Display Templates
      2. Click Add > Asset Publisher Template
      3. In the template editor, click on the "Asset Entries" variable, which represents a list.

      Expected behavior

      The code snippet added to the editor contains code to iterate a list variable. For example:

      <#if entries?has_content>
      	<#list entries as curEntry>
      		${curEntry.getTitle(locale)}
      		
      		
      	</#list>
      </#if>
      

      Current behavior

      The code snippet added to the editor doesn't contain code to iterate a list, but just the variable name. For example:

      ${entries}
      

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  5 years, 17 weeks ago

                  Packages

                  Version Package
                  6.2.2 CE GA3
                  6.2.X EE
                  7.0.0 M1