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

No syntax error when adding a broken fragment

    Details

    • Story Points:
      0.25
    • Fix Priority:
      4

      Description

      Steps to Reproduce:
      1) Startup Liferay 7.1
      2) Navigate to Build > Page Fragments
      3) Create a new collection
      4) Create a Page Fragment
      5) Under the HTML section in between the <div> tags, add the following:

       

      [#if request.getAttribute("LIFERAY_SHARED_THEME_DISPLAY")??] 
      [#assign assetEntry = request.getAttribute("LIFERAY_SHARED_THEME_DISPLAY").getThemeId() /] 
      ${assetEntry} 
      [/#if]
      [@liferay.breadcrumbs /] 
      <br> 
      ${init} 
      <br> 
      ${fullTemplatesPath} 
      <br> 
      ${templatesPath} 
      

      Example of what the whole section should look like:

       

      <div class="fragment_38201">
      [#if request.getAttribute("LIFERAY_SHARED_THEME_DISPLAY")??] 
      [#assign assetEntry = request.getAttribute("LIFERAY_SHARED_THEME_DISPLAY").getThemeId() /] 
      ${assetEntry} 
      [/#if]
      [@liferay.breadcrumbs /] 
      <br> 
      ${init} 
      <br> 
      ${fullTemplatesPath} 
      <br>
      ${templatesPath} 
      </div>
      

      Expected result:
      The preview for the Page Fragment says, "Page Fragments is temporarily unavailable."

      Actual result:
      The preview works, no syntaxerror because of ${templatesPath}.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              support-lep@liferay.com SE Support
              Reporter:
              lu.liu Lu Liu
              Participants of an Issue:
              Recent user:
              Lu Liu
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Days since last comment:
                2 weeks, 1 day ago

                  Packages

                  Version Package