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

Support more than 10 tabs with urls using liferay-ui:tabs taglib

    Details

      Description

      The issue was resovled by LPS-50378 on master. It doesn't backport to ee-6.2.x. The ticket will backport LPS-50378 to ee-6.2.x.

      Steps to reproduce

      1. Start ee-6.2.x bundle
      2. Add new 10 pages (10 pages + Welcome = Total will be 11 pages)
      3. Place Site Map portlet
      4. Create new Site Map Display Templates with the following contents:
        Freemarker
        <#assign liferay_ui = taglibLiferayHash["/WEB-INF/tld/liferay-ui.tld"] />
        
        <#if entries?has_content>
          <#assign names = "" />
          <#assign url = [] />
          <#list entries as curPage>
            <#if names != "">
              <#assign names = names + "," />
            </#if>
            <#assign names = names + curPage.getName(request) />
            <#assign url = url + [curPage.getRegularURL(request)] />
          </#list>
        
          <@liferay_ui["tabs"]
            names = names
            tabsValues = names
            type = "tabs"
            url0 = url[0]
            url1 = url[1]
            url2 = url[2]
            url3 = url[3]
            url4 = url[4]
            url5 = url[5]
            url6 = url[6]
            url7 = url[7]
            url8 = url[8]
            url9 = url[9]
            url10 = url[10]
            value = themeDisplay.getLayout().getName(request)
            refresh = false
          />
        </#if>
        
      5. Apply the created display template to the Site Map portlet

      Actual results
      Only 11th tab's link will be:

      javascript:Liferay.Portal.Tabs.show('_85_INSTANCE_TogDZGMueNUs_tabs1', ['\u0057\u0065\u006c\u0063\u006f\u006d\u0065','\u0050\u0061\u0067\u0065\u0031','\u0050\u0061\u0067\u0065\u0032','\u0050\u0061\u0067\u0065\u0033','\u0050\u0061\u0067\u0065\u0034','\u0050\u0061\u0067\u0065\u0035','\u0050\u0061\u0067\u0065\u0036','\u0050\u0061\u0067\u0065\u0037','\u0050\u0061\u0067\u0065\u0038','\u0050\u0061\u0067\u0065\u0039','\u0050\u0061\u0067\u0065\u0031\u0030'], '\u0050\u0061\u0067\u0065\u0031\u0030');
      

      Expected result
      11th tab's link should be the following as with other links

      http://localhost:8080/web/guest/page10
      

      We can deploy https://issues.liferay.com/secure/attachment/175832/test-tabsTag-portlet-6.2.10.1.war to do the test.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                felix.zhang Felix Zhang
                Reporter:
                hai.yu Hai Yu
                Participants of an Issue:
                Recent user:
                Esther Sanz
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  3 years, 17 weeks, 4 days ago

                  Packages

                  Version Package
                  6.2.X EE