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

If a portlet is called with taglibLiferay.runtime within Velocity Application Display Templates, the portlet is always shown at the top of the template

    Details

      Description

      Reproduction Steps:

      1. Install a Liferay Tomcat bundle
      2. Log on as test@liferay.com (default admin user)
      3. Add an Asset Publisher to the default page
      4. Click the Asset Publisher's Configuration button, then select:
        Display Settings -> Manage Display Templates for Liferay -> Add
      5. Select "Velocity" as language
      6. Fill out the template name ("TestTemplate1") and it's code should be:
        master
        <h1>
            This is the title
        </h1>
        <div>
            #set ($breadcrumbsPortlet = "com_liferay_site_navigation_breadcrumb_web_portlet_BreadcrumbPortlet")
            $taglibLiferay.runtime($breadcrumbsPortlet, '', $velocityPortletPreferences.toString())
            #set ($VOID = $velocityPortletPreferences.reset())
        </div>
        
        6.2.x
        <h1>
               This is the title
        </h1>
        <div>
        	#set ($breadcrumbsPortlet = "73")
               $taglibLiferay.runtime($breadcrumbsPortlet, '', $velocityPortletPreferences.toString())
        	#set ($VOID = $velocityPortletPreferences.reset())
        </div>
        
      7. Save the template, apply it for your Asset Publisher and visit the default page again.

      Expected Results:
      The embedded breadcrumb portlet should appear after the "title" section

      Actual Results:
      The breadcrumb portlet appears at the top

      Reproduced with the customer's patches
      Reproduced with the latest patches for 6.2 EE
      Reproduced on 6.2.x (a40ae1b8b09d3e9e05bddfbc29be8a42f81d9672)
      Fixed on Master (ba41a7a08fb84a72209d8ce8de0a0932bc7d86d9) by LPS-53175

        Attachments

          Activity

            People

            • Assignee:
              norbert.kocsis Norbert Kocsis
              Reporter:
              norbert.kocsis Norbert Kocsis
              Participants of an Issue:
              Recent user:
              Tibor Lipusz
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Days since last comment:
                1 year, 38 weeks, 4 days ago

                Packages

                Version Package