-
Type:
Bug
-
Status: Closed
-
Resolution: Fixed
-
Affects Version/s: 6.2.X EE
-
Fix Version/s: 6.2.X EE
-
Component/s: ~ [Archived] Frontend Infrastructure, ~[Archived] UI Taglibs
-
Labels:
-
Branch Version/s:6.2.x
-
Backported to Branch:Committed
-
Story Points:1.25
-
Fix Priority:3
-
Git Pull Request:
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
- Start ee-6.2.x bundle
- Add new 10 pages (10 pages + Welcome = Total will be 11 pages)
- Place Site Map portlet
- 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>
- 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.