Fehler bei der Verarbeitung der Vorlage.
No signature of method getDate matches the arguments
1<#-- @Author Dominic Blank USU AG --> 
2<#-- @Author Michel Meier USU AG --> 
3 
4<#assign liferay_ui = taglibLiferayHash["/WEB-INF/tld/liferay-ui.tld"] /> 
5<#assign layoutLocalService = serviceLocator.findService("com.liferay.portal.service.LayoutLocalService") /> 
6<#assign classNameLocalService = serviceLocator.findService("com.liferay.portal.service.ClassNameLocalService") /> 
7 
8<#assign abstractLength = 150 /> 
9<#assign actualOverviewURL = getterUtil.getString(propsUtil.get("asset.publisher.actual.url"))/> 
10<#assign articleViewURL = getterUtil.getString(propsUtil.get("asset.publisher.article.url"))/> 
11 
12<#if themeDisplay.getLayout().isPublicLayout()> 
13    <#assign communityURL = themeDisplay.getPathFriendlyURLPublic()/> 
14    <#assign isPrivate = false/> 
15<#else> 
16    <#assign communityURL = themeDisplay.getPathFriendlyURLPrivateGroup()/> 
17    <#assign isPrivate = true/> 
18</#if> 
19 
20<#if actualOverviewURL?has_content> 
21    <#assign actualAssetPublisherURL = communityURL + themeDisplay.getScopeGroup().getFriendlyURL()+actualOverviewURL/> 
22    <#assign actualOverviewPage = layoutLocalService.getFriendlyURLLayout(themeDisplay.getScopeGroupId(), isPrivate, actualOverviewURL)! /> 
23     
24    <#if actualOverviewPage?has_content> 
25        <#assign ltp = actualOverviewPage.getLayoutType()/> 
26         
27        <#assign portlets = ltp.getPortlets()/> 
28         
29        <#list portlets as portlet> 
30            <#assign portletName = portlet.getPortletName()/> 
31            <#if (portletName == "101" && portlet.isInstanceable())> 
32        	    <#assign instanceIdActualOverview = portlet.getInstanceId()/> 
33        	    <#break> 
34        	</#if> 
35        </#list> 
36    </#if> 
37</#if> 
38 
39<#if articleViewURL?has_content> 
40    <#assign articleAssetPublisherURL = communityURL + themeDisplay.getScopeGroup().getFriendlyURL()+articleViewURL/> 
41    <#assign articlePage = layoutLocalService.getFriendlyURLLayout(themeDisplay.getScopeGroupId(), isPrivate, articleViewURL)! /> 
42     
43    <#if articlePage?has_content> 
44        <#assign ltp = articlePage.getLayoutType()/> 
45         
46        <#assign portlets = ltp.getPortlets()/> 
47         
48        <#list portlets as portlet> 
49            <#assign portletName = portlet.getPortletName()/> 
50            <#if (portletName == "101" && portlet.isInstanceable())> 
51        	    <#assign instanceIdArticle = portlet.getInstanceId()/> 
52        	    <#break> 
53        	</#if> 
54        </#list> 
55    </#if> 
56</#if> 
57 
58<#assign errorOccured = false/> 
59    		 
60<div class="error"  style="color: red;"> 
61    <#list portletPreferences["anyAssetType"] as prop> 
62    	<#if prop == 'true' || prop == 'false'> 
63    		<#assign errorOccured = true/> 
64    		    <div>Ausführung der Anzeige gestoppt, bitte schränken Sie den AssetPublisher auf den Assettyp "Webcontent" ein</div> 
65    		<#break> 
66    	<#else> 
67    		<#assign propNum = prop?number> 
68    		 <#if classNameLocalService.fetchClassName(propNum).getValue()!="com.liferay.portlet.journal.model.JournalArticle"> 
69    		 	<#assign errorOccured = true/> 
70    		 	    <div>Ausführung der Anzeige gestoppt, bitte schränken Sie den AssetPublisher auf den Assettyp "Webcontent" ein</div> 
71    			<#break> 
72    		 </#if> 
73    	</#if> 
74    </#list> 
75    <#if !actualOverviewURL?has_content> 
76        <div>asset.publisher.actual.url ist nicht in der portal-ext.properties definiert</div> 
77    <#else> 
78        <#if !actualOverviewPage?has_content> 
79            <div>Übersichtsseite für aktuelle News ${actualAssetPublisherURL} ist auf dem Portal nicht vorhanden</div> 
80        <#else> 
81            <#if !instanceIdActualOverview?has_content> 
82                <div>Kein AssetPublisher auf der Übersichtsseite für aktuelle News ${actualAssetPublisherURL} plaziert</div> 
83            </#if> 
84        </#if> 
85    </#if> 
86    <#if !articleViewURL?has_content> 
87        <div>asset.publisher.actual.url ist nicht in der portal-ext.properties definiert</div> 
88    <#else> 
89        <#if !articlePage?has_content> 
90            <div>Seite zur Darstellung der Artikel ${articleAssetPublisherURL} ist auf dem Portal nicht vorhanden</div> 
91        <#else> 
92            <#if !instanceIdArticle?has_content> 
93                <div>Kein AssetPublisher auf der Seite zur Darstellung der Artikel ${articleAssetPublisherURL} plaziert</div> 
94            </#if> 
95        </#if> 
96    </#if> 
97</div> 
98 
99 
100<div class="asset-publisher-startpage-header"> 
101    <h1 class="basler"><@liferay.language key="archived" /></h1> 
102    <#if actualOverviewPage?has_content> 
103    <a href="${actualAssetPublisherURL}">&raquo; Aktuelles Übersicht</a> 
104    </#if> 
105</div> 
106 
107<#assign assetCounter = 0 /> 
108 
109<#if errorOccured == false> 
110	<#list entries as listEntry> 
111		<div class="asset-abstract-actual"> 
112			<#assign assetCounter = assetCounter + 1 /> 
113			 
114			<#assign entry = listEntry /> 
115 
116			<#assign assetRenderer = listEntry.getAssetRenderer() /> 
117 
118			<#assign entryTitle = htmlUtil.escape(assetRenderer.getTitle(locale)) /> 
119 
120			<#assign viewURL = assetPublisherHelper.getAssetViewURL(renderRequest, renderResponse, listEntry) /> 
121			<#if assetLinkBehavior != "showFullContent"> 
122				<#assign viewURL = assetPublisherHelper.getAssetViewURL(renderRequest, renderResponse, listEntry, true) /> 
123				<#if instanceIdArticle?has_content> 
124					<#assign viewURL = communityURL+themeDisplay.getScopeGroup().getFriendlyURL()+articleViewURL+"?contentId="+listEntry.getEntryId()/> 
125				</#if> 
126			</#if> 
127 
128			<div class="asset-abstract"> 
129				<div class="lfr-meta-actions asset-actions"> 
130					<@getPrintIcon /> 
131 
132					<@getFlagsIcon /> 
133 
134					<@getEditIcon /> 
135				</div> 
136				 
137					 
138        		<div class="asset-actions"> 
139        		    <@getMetadataField fieldName="publish-date"/> 
140        		</div> 
141         
142 
143				<h3 class="asset-title"> 
144					<a href="${viewURL}">${entryTitle}</a> 
145				</h3> 
146 
147				<@getMetadataField fieldName="tags" /> 
148 
149				<@getMetadataField fieldName="view-count" /> 
150 
151				<div class="asset-content"> 
152					<@getSocialBookmarks /> 
153 
154					<div class="asset-summary"> 
155						<@getMetadataField fieldName="author" /> 
156 
157						${htmlUtil.escape(stringUtil.shorten(assetRenderer.getSummary(renderRequest, renderResponse), abstractLength))} 
158 
159						<a href="${viewURL}"><span class="hide-accessible"><@liferay.language key="about" />${entryTitle}</span> &raquo;</a> 
160					</div> 
161 
162					<@getRatings /> 
163 
164					<@getRelatedAssets /> 
165 
166					<@getDiscussion /> 
167				</div> 
168			</div> 
169		</div> 
170	</#list> 
171</#if> 
172 
173<#macro getDiscussion> 
174	<#if validator.isNotNull(assetRenderer.getDiscussionPath()) && (enableComments == "true")> 
175		<br /> 
176 
177		<#assign discussionURL = renderResponse.createActionURL() /> 
178 
179		${discussionURL.setParameter("struts_action", "/asset_publisher/" + assetRenderer.getDiscussionPath())} 
180 
181		<@liferay_ui["discussion"] 
182			className=entry.getClassName() 
183			classPK=entry.getClassPK() 
184			formAction=discussionURL?string 
185			formName="fm" + entry.getClassPK() 
186			ratingsEnabled=enableCommentRatings == "true" 
187			redirect=portalUtil.getCurrentURL(request) 
188			userId=assetRenderer.getUserId() 
189		/> 
190	</#if> 
191</#macro> 
192 
193<#macro getEditIcon> 
194	<#if assetRenderer.hasEditPermission(themeDisplay.getPermissionChecker())> 
195		<#assign redirectURL = renderResponse.createRenderURL() /> 
196 
197		${redirectURL.setParameter("struts_action", "/asset_publisher/add_asset_redirect")} 
198		${redirectURL.setWindowState("pop_up")} 
199 
200		<#assign editPortletURL = assetRenderer.getURLEdit(renderRequest, renderResponse, windowStateFactory.getWindowState("pop_up"), redirectURL)!"" /> 
201 
202		<#if validator.isNotNull(editPortletURL)> 
203			<#assign title = languageUtil.format(locale, "edit-x", entryTitle) /> 
204 
205			<@liferay_ui["icon"] 
206				image="edit" 
207				message=title 
208				url="javascript:Liferay.Util.openWindow({dialog: {width: 960}, id:'" + renderResponse.getNamespace() + "editAsset', title: '" + title + "', uri:'" + htmlUtil.escapeURL(editPortletURL.toString()) + "'});" 
209			/> 
210		</#if> 
211	</#if> 
212</#macro> 
213 
214<#macro getFlagsIcon> 
215	<#if enableFlags == "true"> 
216		<@liferay_ui["flags"] 
217			className=entry.getClassName() 
218			classPK=entry.getClassPK() 
219			contentTitle=entry.getTitle(locale) 
220			label=false 
221			reportedUserId=entry.getUserId() 
222		/> 
223	</#if> 
224</#macro> 
225 
226<#macro getMetadataField 
227	fieldName 
228
229	<#if stringUtil.split(metadataFields)?seq_contains(fieldName)> 
230		<span class="metadata-entry"> 
231			<#assign dateFormat = "dd.MM.yyyy" /> 
232			<#if fieldName == "author"> 
233				<@liferay.language key="by" /> ${portalUtil.getUserName(assetRenderer.getUserId(), assetRenderer.getUserName())} 
234			<#elseif fieldName == "categories"> 
235				<@liferay_ui["asset-categories-summary"] 
236					className=entry.getClassName() 
237					classPK=entry.getClassPK() 
238					portletURL=renderResponse.createRenderURL() 
239				/> 
240			<#elseif fieldName == "create-date"> 
241				${dateUtil.getDate(entry.getCreateDate(), dateFormat, locale)} 
242			<#elseif fieldName == "expiration-date"> 
243				${dateUtil.getDate(entry.getExpirationDate(), dateFormat, locale)} 
244			<#elseif fieldName == "modified-date"> 
245				${dateUtil.getDate(entry.getModifiedDate(), dateFormat, locale)} 
246			<#elseif fieldName == "priority"> 
247				${entry.getPriority()} 
248			<#elseif fieldName == "publish-date"> 
249				${dateUtil.getDate(entry.getPublishDate(), dateFormat, locale)} 
250			<#elseif fieldName == "tags"> 
251				<@liferay_ui["asset-tags-summary"] 
252					className=entry.getClassName() 
253					classPK=entry.getClassPK() 
254					portletURL=renderResponse.createRenderURL() 
255				/> 
256			<#elseif fieldName == "view-count"> 
257				<@liferay_ui["icon"] 
258					image="history" 
259				/> 
260				${entry.getViewCount()} <@liferay.language key="views" /> 
261			</#if> 
262		</span> 
263	</#if> 
264</#macro> 
265<#macro getPrintIcon> 
266	<#if enablePrint == "true" > 
267		<#assign printURL = renderResponse.createRenderURL() /> 
268		${printURL.setParameter("struts_action", "/asset_publisher/view_content")} 
269		${printURL.setParameter("assetEntryId", entry.getEntryId()?string)} 
270		${printURL.setParameter("viewMode", "print")} 
271		${printURL.setParameter("type", entry.getAssetRendererFactory().getType())} 
272		<#if (validator.isNotNull(assetRenderer.getUrlTitle()))> 
273			<#if (assetRenderer.getGroupId() != themeDisplay.getScopeGroupId())> 
274				${printURL.setParameter("groupId", assetRenderer.getGroupId()?string)} 
275			</#if> 
276			${printURL.setParameter("urlTitle", assetRenderer.getUrlTitle())} 
277		</#if> 
278		${printURL.setWindowState("pop_up")} 
279		<@liferay_ui["icon"] 
280			image="print" 
281			message="print" 
282			url="javascript:Liferay.Util.openWindow({id:'" + renderResponse.getNamespace() + "printAsset', title: '" + languageUtil.format(locale, "print-x-x", ["hide-accessible", entryTitle]) + "', uri: '" + htmlUtil.escapeURL(printURL.toString()) + "'});" 
283		/> 
284	</#if> 
285</#macro> 
286<#macro getRatings> 
287	<#if (enableRatings == "true")> 
288		<div class="asset-ratings"> 
289			<@liferay_ui["ratings"] 
290				className=entry.getClassName() 
291				classPK=entry.getClassPK() 
292			/> 
293		</div> 
294		<div style="clear:both;"></div> 
295	</#if> 
296</#macro> 
297<#macro getRelatedAssets> 
298	<#if enableRelatedAssets == "true"> 
299		<@liferay_ui["asset-links"] 
300			assetEntryId=entry.getEntryId() 
301		/> 
302	</#if> 
303</#macro> 
304<#macro getSocialBookmarks> 
305	<#if enableSocialBookmarks == "true"> 
306		<@liferay_ui["social-bookmarks"] 
307			displayStyle="${socialBookmarksDisplayStyle}" 
308			target="_blank" 
309			title=entry.getTitle(locale) 
310			url=viewURL 
311		/> 
312	</#if> 
313</#macro> 
Regionalmanager nach PLZ