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

Chosen file's script code should load into template editor

    Details

      Description

      When you choose a script file for your ADT, its code should load into the editor.

      Steps to reproduce:
      1. Admin -> Site Administration -> Configuration -> Application Display Templates
      2. Add -> Blogs Template ... to bring up template editor
      3. Choose an existing .ftl file.

      Example contents could be ...

      <#if entries?has_content>
      Here are the titles of the blog entries:
      <#list entries as curBlogEntry>
      ${curBlogEntry.title}
      </#list>
      </#if>

      The code should show in the editor, but it does not. See attached screenshot.

      If the user clicks save, the file's code persists to the template; but the user doesn't know that. He must re-open the template in the editor to confirm that it persisted. Alternatively, he can also click save-and-continue to get the code to appear and continue to work on it.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                5 years, 47 weeks, 1 day ago

                Packages

                Version Package