Innehållspresentatör

Fel uppstod under bearbetning av mallen.
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#2514803" 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<#assign summaryMaxChars = 125 /> 
15<#assign nameMaxChars = 30 /> 
16 
17<div class="projects-listing-wrap"> 
18 
19    <#if entries?has_content> 
20      <div class="projects-listing"> 
21        <#list entries as entry> 
22 
23        <#assign assetRenderer = entry.getAssetRenderer() /> 
24				<#assign viewURL = assetPublisherHelper.getAssetViewURL(renderRequest, renderResponse, entry) /> 
25 
26				<#if assetLinkBehavior != "showFullContent"> 
27					<#assign viewURL = assetRenderer.getURLViewInContext(renderRequest, renderResponse, viewURL) /> 
28				</#if> 
29 
30        <#-- 
31          <#assign viewURL = viewURL + "?p_p_state=maximized" /> 
32        --> 
33 
34        <#assign docXml = saxReaderUtil.read(entry.getAssetRenderer().getArticle().getContentByLocale(locale)) /> 
35        <#assign itemName = docXml.valueOf("//dynamic-element[@name='name']/dynamic-content/text()") /> 
36        <#assign itemNameShort = ellipsis(itemName nameMaxChars) /> 
37 
38        <#assign itemIntro = docXml.valueOf("//dynamic-element[@name='intro']/dynamic-content/text()") /> 
39        <#assign itemIntro = ellipsis(itemIntro summaryMaxChars) /> 
40 
41        <#assign itemImageUrl = docXml.valueOf("//dynamic-element[@name='image']/dynamic-content/text()") /> 
42 
43        <div class="entry-item"> 
44 
45          <div class="entry-item-inner"> 
46            <div class="image-wrap"> 
47              <img src="${itemImageUrl}" alt="${itemName}" /> 
48            </div> 
49            <div class="entry-item-content"> 
50              <h2> 
51                ${itemNameShort} 
52              </h2> 
53 
54              <p> 
55                ${itemIntro} 
56              </p> 
57 
58              <a class="link-btn link-btn-filled link-btn-link" href="${viewURL}" title="${itemName}"> 
59                <span>L&auml;s mer</span> 
60              </a> 
61            </div> 
62          </div> 
63 
64          </div> 
65 
66        </#list> 
67      </div> 
68    </#if> 
69 
70</div> 
71 
72<#function ellipsis myString maxChars> 
73  <#if myString?length gt maxChars> 
74    <#return myString?substring(0, maxChars) + "..." /> 
75  <#else> 
76    <#return myString /> 
77  </#if> 
78</#function>