Asset Publisher

An error occurred while processing the template.
Error while loading tag library for URI "/WEB-INF/tld/liferay-ui.tld" from TLD location "servletContext:/WEB-INF/tld/liferay-ui.tld"; see cause exception.

----
FTL stack trace ("~" means nesting-related):
	- Failed at: #assign liferay_ui = taglibLiferayHas...  [in template "10136#10174#2515005" at line 3, column 1]
----
1<#setting locale=locale> 
2 
3<#assign liferay_ui = taglibLiferayHash["/WEB-INF/tld/liferay-ui.tld"] /> 
4<#assign liferay_util = taglibLiferayHash["/WEB-INF/tld/liferay-util.tld"] /> 
5 
6<#assign liferay_portlet = taglibLiferayHash["/WEB-INF/tld/liferay-portlet.tld"] /> 
7 
8<#assign page = themeDisplay.getLayout() /> 
9<#assign group_id = page.getGroupId() /> 
10<#assign company_id = themeDisplay.getCompanyId() /> 
11 
12<#assign expandoValueLocalService = serviceLocator.findService("com.liferay.portlet.expando.service.ExpandoValueLocalService") /> 
13<#assign layoutLocalService = serviceLocator.findService("com.liferay.portal.service.LayoutLocalService")> 
14 
15<#assign blogsPortletId = "33" /> 
16<#assign blogsPagePlid = portalUtil.getPlidFromPortletId(group_id, page.isPrivateLayout(), blogsPortletId) /> 
17<#assign blogsLayout = layoutLocalService.getLayout(blogsPagePlid) /> 
18 
19<#assign blogPageFriendlyUrl = blogsLayout.getFriendlyURL(locale) /> 
20<#assign blogEntryFriendlyUrlPrefix = "/-/blogs/" /> 
21 
22 
23<div class="blogs-box-listing content-box"> 
24 
25  <h2> 
26    Nyhetsblogg 
27  </h2> 
28 
29  <div class="content-box-bd"> 
30 
31    <#if entries?has_content> 
32      <div class="news-items"> 
33        <#list entries as entry> 
34 
35  				<#assign assetRenderer = entry.getAssetRenderer() /> 
36  				<#assign viewURL = assetPublisherHelper.getAssetViewURL(renderRequest, renderResponse, entry) /> 
37 
38  				<#if assetLinkBehavior != "showFullContent"> 
39  					<#assign viewURL = assetRenderer.getURLViewInContext(renderRequest, renderResponse, viewURL) /> 
40  				</#if> 
41 
42          <#assign viewURL = blogPageFriendlyUrl + blogEntryFriendlyUrlPrefix + assetRenderer.getUrlTitle() /> 
43 
44          <div class="entry-item"> 
45            <a href="${viewURL}"> 
46              <div class="entry-content"> 
47                ${htmlUtil.escape(entry.getTitle())} &raquo; 
48              </div> 
49              <div class="entry-date"> 
50                ${dateUtil.getDate(entry.getPublishDate(), "dd MMM", locale)} 
51              </div> 
52            </a> 
53          </div> 
54 
55        </#list> 
56      </div> 
57    </#if> 
58 
59  </div> 
60 
61  <div class="more-link-wrap"> 
62    <a href="${blogPageFriendlyUrl}" class="more-link">Fler blogginl&auml;gg &raquo;</a> 
63  </div> 
64 
65 
66</div> 
67 
68<#function ellipsis myString maxChars> 
69  <#if myString?length gt maxChars> 
70    <#return myString?substring(0, maxChars) + "..." /> 
71  <#else> 
72    <#return myString /> 
73  </#if> 
74</#function> 

Asset Publisher

An error occurred while processing the template.
Error while loading tag library for URI "/WEB-INF/tld/liferay-ui.tld" from TLD location "servletContext:/WEB-INF/tld/liferay-ui.tld"; see cause exception.

----
FTL stack trace ("~" means nesting-related):
	- Failed at: #assign liferay_ui = taglibLiferayHas...  [in template "10136#10174#2515002" at line 3, column 1]
----
1<#setting locale=locale> 
2 
3<#assign liferay_ui = taglibLiferayHash["/WEB-INF/tld/liferay-ui.tld"] /> 
4<#assign liferay_util = taglibLiferayHash["/WEB-INF/tld/liferay-util.tld"] /> 
5 
6<#assign liferay_portlet = taglibLiferayHash["/WEB-INF/tld/liferay-portlet.tld"] /> 
7 
8<#assign page = themeDisplay.getLayout() /> 
9<#assign group_id = page.getGroupId() /> 
10<#assign company_id = themeDisplay.getCompanyId() /> 
11 
12<#assign layoutLocalService = serviceLocator.findService("com.liferay.portal.service.LayoutLocalService")> 
13 
14<div class="event-box-listing content-box"> 
15 
16  <h2> 
17    Kalendarium 
18  </h2> 
19 
20  <div class="content-box-bd"> 
21 
22    <#if entries?has_content> 
23      <div class="news-items"> 
24        <#list entries as entry> 
25 
26        <#assign assetRenderer = entry.getAssetRenderer() /> 
27				<#assign viewURL = assetPublisherHelper.getAssetViewURL(renderRequest, renderResponse, entry) /> 
28 
29				<#if assetLinkBehavior != "showFullContent"> 
30					<#assign viewURL = assetRenderer.getURLViewInContext(renderRequest, renderResponse, viewURL) /> 
31				</#if> 
32 
33        <#assign viewURL = viewURL + "?p_p_state=maximized" /> 
34 
35        <#assign docXml = saxReaderUtil.read(entry.getAssetRenderer().getArticle().getContentByLocale(locale)) /> 
36        <#assign itemEventName = docXml.valueOf("//dynamic-element[@name='eventName']/dynamic-content/text()") /> 
37        <#assign itemDateStart = docXml.valueOf("//dynamic-element[@name='dateStart']/dynamic-content/text()") /> 
38        <#assign itemDateStartDate = itemDateStart?number?long?number_to_datetime /> 
39        <#assign itemTimeStart = docXml.valueOf("//dynamic-element[@name='timeStart']/dynamic-content/text()") /> 
40 
41        <#assign itemTimeEnd = docXml.valueOf("//dynamic-element[@name='timeStart']/dynamic-element[@name='timeEnd']/dynamic-content/text()") /> 
42 
43          <div class="entry-item"> 
44            <a href="${viewURL}"> 
45 
46              <div class="entry-date"> 
47                <div class="entry-date-inner"> 
48                  <div class="entry-date-day"> 
49                    ${itemDateStartDate?string("dd")} 
50                  </div> 
51                  <div class="entry-date-month"> 
52                    ${itemDateStartDate?string("MMM")} 
53                  </div> 
54                </div> 
55              </div> 
56 
57              <div class="entry-content"> 
58                <div class="name"> 
59                  ${itemEventName} 
60                </div> 
61                <#if itemTimeStart?has_content> 
62                  <div class="time"> 
63                    <i class="icon-time"></i> ${itemTimeStart} 
64                    <#if itemTimeEnd?has_content> 
65                      &nbsp; - ${itemTimeEnd} 
66                    </#if> 
67                  </div> 
68                </#if> 
69 
70              </div> 
71 
72            </a> 
73          </div> 
74 
75        </#list> 
76      </div> 
77    </#if> 
78 
79  </div> 
80 
81  <#if entries?has_content> 
82    <#assign entry = entries[0] /> 
83    <#assign article = entry.getAssetRenderer().getArticle() /> 
84    <#assign displayPageUuid = article.getLayoutUuid() /> 
85    <#assign displayPage = layoutLocalService.fetchLayoutByUuidAndGroupId(displayPageUuid, group_id, page.isPrivateLayout())! /> 
86    <#if displayPage?has_content> 
87      <#assign displayPageUrl = displayPage.getFriendlyURL(locale) /> 
88      <div class="more-link-wrap"> 
89        <a href="${displayPageUrl}" class="more-link">Fler event &raquo;</a> 
90      </div> 
91    </#if> 
92  </#if> 
93 
94</div> 
95 
96<#function ellipsis myString maxChars> 
97  <#if myString?length gt maxChars> 
98    <#return myString?substring(0, maxChars) + "..." /> 
99  <#else> 
100    <#return myString /> 
101  </#if> 
102</#function>