Fehler bei der Verarbeitung der Vorlage.
No signature of method getDate matches the arguments
1<#-- @Author Dominic Blank USU AG --> 
2 
3<#assign liferay_ui = taglibLiferayHash["/WEB-INF/tld/liferay-ui.tld"] /> 
4<#assign journalArticleLocalService = serviceLocator.findService("com.liferay.portlet.journal.service.JournalArticleLocalService")/> 
5<#assign journalArticleResourceLocalService = serviceLocator.findService("com.liferay.portlet.journal.service.JournalArticleResourceLocalService")/>     
6<#assign assetEntryLocalService = serviceLocator.findService("com.liferay.portlet.asset.service.AssetEntryLocalService")/>   
7<#assign layoutLocalService = serviceLocator.findService("com.liferay.portal.service.LayoutLocalService") /> 
8 
9<#assign actualOverviewURL = getterUtil.getString(propsUtil.get("asset.publisher.actual.url"))/> 
10 
11<#assign archiveOverviewURL = getterUtil.getString(propsUtil.get("asset.publisher.archive.url"))/> 
12  
13<#assign realCurrentURL = portalUtil.getCurrentCompleteURL(request)/> 
14 
15<#assign contentId = httpUtil.getParameter(realCurrentURL, "contentId", false)/> 
16 
17<#if themeDisplay.getLayout().isPublicLayout()> 
18    <#assign communityURL = themeDisplay.getPathFriendlyURLPublic()/> 
19<#else> 
20    <#assign communityURL = themeDisplay.getPathFriendlyURLPrivateGroup()/> 
21</#if> 
22 
23<#if actualOverviewURL?has_content> 
24    <#assign actualAssetPublisherURL = communityURL + themeDisplay.getScopeGroup().getFriendlyURL()+actualOverviewURL/> 
25    <#assign actualOverviewPage = layoutLocalService.getFriendlyURLLayout(themeDisplay.getScopeGroupId(), false, actualOverviewURL)! /> 
26     
27    <#if actualOverviewPage?has_content> 
28        <#assign ltp = actualOverviewPage.getLayoutType()/> 
29         
30        <#assign portlets = ltp.getPortlets()/> 
31         
32        <#list portlets as portlet> 
33            <#assign portletName = portlet.getPortletName()/> 
34            <#if (portletName == "101" && portlet.isInstanceable())> 
35        	    <#assign instanceIdActualOverview = portlet.getInstanceId()/> 
36        	    <#break> 
37        	</#if> 
38        </#list> 
39    </#if> 
40</#if> 
41 
42<#if archiveOverviewURL?has_content> 
43    <#assign archiveAssetPublisherURL = communityURL + themeDisplay.getScopeGroup().getFriendlyURL()+archiveOverviewURL/> 
44    <#assign archiveOverviewPage = layoutLocalService.getFriendlyURLLayout(themeDisplay.getScopeGroupId(), false, archiveOverviewURL)! /> 
45     
46    <#if archiveOverviewPage?has_content> 
47        <#assign ltp = archiveOverviewPage.getLayoutType()/> 
48         
49        <#assign portlets = ltp.getPortlets()/> 
50         
51        <#list portlets as portlet> 
52            <#assign portletName = portlet.getPortletName()/> 
53            <#if (portletName == "101" && portlet.isInstanceable())> 
54        	    <#assign instanceIdArchiveOverview = portlet.getInstanceId()/> 
55        	    <#break> 
56        	</#if> 
57        </#list> 
58    </#if> 
59</#if> 
60 
61<#if contentId?has_content> 
62 
63	<#assign entry = assetEntryLocalService.getAssetEntry(contentId?number)!/> 
64 
65	<#assign assetRenderer = entry.getAssetRenderer() /> 
66	<#assign entryTitle = htmlUtil.escape(assetRenderer.getTitle(locale)) /> 
67	 
68	<#if entry?has_content> 
69		<#assign contentId = entry.getClassPK()/> 
70	 
71		<#assign resourceObj = journalArticleResourceLocalService.getJournalArticleResource(contentId?number)!/> 
72		 
73		 <#if resourceObj?has_content> 
74			<#assign hasPermission = permissionChecker.hasPermission(themeDisplay.getScopeGroupId()?number, "com.liferay.portlet.journal.model.JournalArticle", resourceObj.getPrimaryKey(), "VIEW")/> 
75		</#if> 
76		 
77		<#if resourceObj?has_content && hasPermission> 
78			<#assign journalObj = journalArticleLocalService.getLatestArticle(themeDisplay.getScopeGroupId(),resourceObj.getArticleId())/> 
79			 
80			<#if journalObj?has_content> 
81				<#assign articleId = journalObj.getArticleId()/> 
82 
83				<#if articleId?has_content && journalArticleLocalService.hasArticle(themeDisplay.getScopeGroupId()?number,articleId)> 
84					<#assign article = journalArticleLocalService.getArticle(themeDisplay.getScopeGroupId()?number,articleId)/> 
85					<div class="asset-publisher-startpage-header"> 
86                        <br> 
87                        <h1>Aktuelles</h1> 
88                    </div> 
89					<div class="asset-full-content show-asset-title"> 
90					    <div class="asset-publisher-date-detail"><@getMetadataField fieldName="publish-date"/></div> 
91					    <h3 class="asset-title-detail content">${entryTitle}</h3> 
92                        <div class="asset-description">	</div> 
93                        <div class="journal-content-article"><@liferay_ui["journal-article"] articleId=articleId groupId=themeDisplay.getScopeGroupId()?number/></div>     
94    				</div> 
95				<#else> 
96					<@noResult /> 
97				</#if> 
98			<#else> 
99				<@noResult />     
100			</#if> 
101		<#else> 
102		   <@noResult /> 
103		</#if> 
104	<#else> 
105		<@noResult /> 
106	</#if> 
107<#else> 
108    <@noResult /> 
109</#if> 
110 
111 
112<#macro noResult> 
113    Kein Artikel gefunden. 
114</#macro> 
115 
116<#macro getMetadataField 
117	fieldName 
118
119	<#if stringUtil.split(metadataFields)?seq_contains(fieldName)> 
120		<span class="metadata-entry"> 
121			<#assign dateFormat = "dd.MM.yyyy" /> 
122			<#if fieldName == "categories"> 
123				<@liferay_ui["asset-categories-summary"] 
124					className=entry.getClassName() 
125					classPK=entry.getClassPK() 
126					portletURL=renderResponse.createRenderURL() 
127				/> 
128			<#elseif fieldName == "create-date"> 
129				${dateUtil.getDate(entry.getCreateDate(), dateFormat, locale)} 
130			<#elseif fieldName == "expiration-date"> 
131				${dateUtil.getDate(entry.getExpirationDate(), dateFormat, locale)} 
132			<#elseif fieldName == "modified-date"> 
133				${dateUtil.getDate(entry.getModifiedDate(), dateFormat, locale)} 
134			<#elseif fieldName == "priority"> 
135				${entry.getPriority()} 
136			<#elseif fieldName == "publish-date"> 
137				${dateUtil.getDate(entry.getPublishDate(), dateFormat, locale)} 
138			<#elseif fieldName == "tags"> 
139				<@liferay_ui["asset-tags-summary"] 
140					className=entry.getClassName() 
141					classPK=entry.getClassPK() 
142					portletURL=renderResponse.createRenderURL() 
143				/> 
144			<#elseif fieldName == "view-count"> 
145				<@liferay_ui["icon"] 
146					image="history" 
147				/> 
148				${entry.getViewCount()} <@liferay.language key="views" /> 
149			</#if> 
150		</span> 
151	</#if> 
152</#macro> 
153 
154<#if actualAssetPublisherURL?has_content> 
155    <div> 
156        <br/> 
157		<a href="${actualAssetPublisherURL}">&raquo; Aktuelles Übersicht</a> 
158    </div> 
159</#if> 
160 
161<#if archiveAssetPublisherURL?has_content> 
162    <div> 
163		<a href="${archiveAssetPublisherURL}">&raquo; Aktuelles Archiv</a> 
164    </div> 
165</#if>