Se ha producido un error al procesar la plantilla.
No signature of method getDate matches the arguments
1<#-- v0: responsive control --> 
2<#-- v0: share links  --> 
3 
4<#-- Custom parameters --> 
5<#-- NOTE: name of structure fields are hardcoded --> 
6<#assign eventStructureName = "Event - 6.2.0.1" /> 
7<#assign assetPublisherEventId = "hH1MWQKqvTsJ" /> 
8<#assign relatedEventPath = "/event/-/asset_publisher/${assetPublisherEventId}/content/" /> 
9 
10<#-- Classes --> 
11<#assign JournalArticleLocalServiceUtil = staticUtil["com.liferay.portlet.journal.service.JournalArticleLocalServiceUtil"] /> 
12<#assign AssetLinkLocalServiceUtil = staticUtil["com.liferay.portlet.asset.service.AssetLinkLocalServiceUtil"] /> 
13<#assign AssetEntryLocalServiceUtil = staticUtil["com.liferay.portlet.asset.service.AssetEntryLocalServiceUtil"] /> 
14<#assign DDMStructureLocalServiceUtil = staticUtil["com.liferay.portlet.dynamicdatamapping.service.DDMStructureLocalServiceUtil"] /> 
15 
16 
17<#-- obtain entryId --> 
18<#assign articleId = .vars['reserved-article-id'].data /> 
19<#assign article = JournalArticleLocalServiceUtil.getLatestArticle(groupId, articleId) /> 
20<#assign resourcePrimKey = article.getResourcePrimKey() /> 
21 
22<#assign assetEntry = AssetEntryLocalServiceUtil.getEntry("com.liferay.portlet.journal.model.JournalArticle", resourcePrimKey) /> 
23<#assign contentId = assetEntry.getEntryId() /> 
24 
25 
26<#-- Structure values --> 
27<#assign event_title = title.getData() /> 
28<#assign event_subtitle = subtitle.getData() /> 
29<#assign event_date_ini = getterUtil.getLong(date_ini.getData())> 
30<#if (event_date_ini > 0)> 
31	<#assign date_ini_DateObj = dateUtil.newDate(event_date_ini)> 
32</#if> 
33<#assign event_date_end = getterUtil.getLong(date_end.getData())> 
34<#if (event_date_end > 0)> 
35	<#assign date_end_DateObj = dateUtil.newDate(event_date_end)> 
36</#if> 
37<#assign event_custom_date = custom_date.getData() /> 
38<#assign event_venue = venue.getData() /> 
39<#assign event_photo = photo.getData() /> 
40<#assign event_caption = '${photo.getChild("caption").getData()}' /> 
41<#assign event_text = text.getData() /> 
42 
43<#assign current_complete_url = request["attributes"]['CURRENT_COMPLETE_URL'] /> 
44<#assign current_complete_url_encoded = httpUtil.encodeURL(current_complete_url) /> 
45 
46 
47<#-- Related Asset information --> 
48 
49<#-- Related Assets IDs --> 
50<#assign relatedAssetIds = [] /> 
51<#list AssetLinkLocalServiceUtil.getDirectLinks(contentId) as currentAssetLink > 
52	<#assign relatedAssetIds = relatedAssetIds + [currentAssetLink.getEntryId2()] /> 
53</#list> 
54 
55<#assign relatedEvents = [] /> 
56 
57<#list relatedAssetIds as currentRelatedAssetId > 
58 
59	<#-- AssetEntry information --> 
60	<#assign classPK = AssetEntryLocalServiceUtil.getAssetEntry(currentRelatedAssetId).getClassPK() /> 
61	<#assign classTypeId = AssetEntryLocalServiceUtil.getAssetEntry(currentRelatedAssetId).getClassTypeId() /> 
62 
63	<#-- JournalArticle information --> 
64	<#assign article = JournalArticleLocalServiceUtil.getLatestArticle(classPK) /> 
65 
66	<#-- Structure information --> 
67	<#assign structureId = classTypeId /> 
68	<#assign structureName = DDMStructureLocalServiceUtil.getDDMStructure(structureId).getName(locale.getDefault()) /> 
69 
70	<#-- Structure validation --> 
71	<#if "${structureName}" == "${eventStructureName}" > 
72		<#assign relatedEvents = relatedEvents + [article] /> 
73	</#if> 
74	 
75</#list> 
76 
77 
78<div class="block-content block-content-small-padding"> 
79    <div class="block-content-inner"> 
80		<div class="row"> 
81			<#if relatedEvents?has_content > 
82				<div class="col-sm-9"> 
83			<#else> 
84				<div class="col-sm-12"> 
85			</#if> 
86				<h2 class="no-margin pd-bottom-10">${event_title}</h2> 
87				 
88				<p class="block-slogan no-margin pd-bottom-10">${event_subtitle}</p> 
89				 
90				<p class="no-margin caps"> 
91					<#if event_custom_date?has_content > 
92						<strong>${event_custom_date}</strong> 
93					<#elseif (event_date_end > 0) > 
94						<strong>${dateUtil.getDate(date_ini_DateObj, "dd MMMM yyyy", locale)} - ${dateUtil.getDate(date_end_DateObj, "dd MMMM yyyy", locale)}</strong> 
95					<#else> 
96						<strong>${dateUtil.getDate(date_ini_DateObj, "dd MMMM yyyy", locale)}</strong> 
97					</#if> 
98				</p> 
99				 
100				<div class="row pd-bottom-15"> 
101					<div class="col-sm-7 pd-top-10"> 
102						<p class="caps custom-color-light" style="font-size: 13px;">${event_venue}</p> 
103					</div> 
104					 
105					<div class="col-sm-5 right"> 
106						<div class="agent-row-content"> 
107							<ul class="social social-boxed"> 
108								Share it: &nbsp &nbsp 
109								<li><a title="E-mail" target="_blank" href="mailto:?subject=${event_title}"><i class="fa fa-envelope"></i></a></li> 
110								<li><a title="Facebook" target="_blank" href="http://www.facebook.com/sharer.php?u=${current_complete_url_encoded}&t=${event_title}"><i class="fa fa-facebook"></i></a></li> 
111								<li><a title="Twitter" target="_blank" href="http://twitter.com/share?url=${current_complete_url_encoded}&text=${event_title}"><i class="fa fa-twitter"></i></a></li> 
112								<li><a title="LinkedIn" target="_blank" href="http://www.linkedin.com/shareArticle?mini=true&url=${current_complete_url_encoded}&title=${event_title}"><i class="fa fa-linkedin"></i></a></li> 
113								<li><a title="ReseachGate" target="_blank" href="https://www.researchgate.net/go.Share.html?url=${current_complete_url_encoded}&title=${event_title}"><i class="fa fa-researchgate"></i></a></li> 
114							</ul> 
115						</div> 
116						 
117					</div> 
118				</div> 
119				 
120				<#if event_photo?has_content > 
121					<div class="property-box-picture-target"> 
122						<img src="${event_photo}" alt=""> 
123						<p class="property-row-body no-margin">${event_caption}</p> 
124					</div> 
125				</#if> 
126 
127				<div class="block-content block-content-small-padding"> 
128					<div class="block-content-inner"> 
129						<div class="text-content"> 
130							${event_text} 
131						</div> 
132					</div> 
133				</div> 
134			</div> 
135 
136			<#if relatedEvents?has_content > 
137				<div class="col-sm-3"> 
138					<div class="sidebar"> 
139						<div class="sidebar-inner"> 
140							<div class="widget"> 
141								<h3 class="widget-title">Other events</h3> 
142								<div class="properties-small-list"> 
143 
144									<#list relatedEvents as currentRelatedEvent > 
145										<#assign docXml = saxReaderUtil.read(currentRelatedEvent.getContent()) /> 
146										<#assign relatedEventTitle = docXml.valueOf("//dynamic-element[@name='title']/dynamic-content/text()") /> 
147										<#assign relatedEventVenue = docXml.valueOf("//dynamic-element[@name='venue']/dynamic-content/text()") /> 
148										<#assign relatedEventDateIni = docXml.valueOf("//dynamic-element[@name='date_ini']/dynamic-content/text()") /> 
149										<#assign relatedEventDateEnd = docXml.valueOf("//dynamic-element[@name='date_end']/dynamic-content/text()") /> 
150										<#assign relatedEventDateCustom = docXml.valueOf("//dynamic-element[@name='custom_date']/dynamic-content/text()") /> 
151										<#assign relatedEventSmallImage = docXml.valueOf("//dynamic-element[@name='small_image']/dynamic-content/text()") /> 
152										<#assign relatedEventUrl = relatedEventPath + currentRelatedEvent.getUrlTitle() /> 
153										 
154										<#-- Date validation --> 
155										<#assign relatedEventDateIni = getterUtil.getLong(relatedEventDateIni)> 
156										<#if (relatedEventDateIni > 0)> 
157											<#assign relatedEventDateIniObj = dateUtil.newDate(relatedEventDateIni)> 
158										</#if> 
159										<#assign relatedEventDateEnd = getterUtil.getLong(relatedEventDateEnd)> 
160										<#if (relatedEventDateEnd > 0)> 
161											<#assign relatedEventDateEndObj = dateUtil.newDate(relatedEventDateEnd)> 
162										</#if> 
163										 
164										<#-- Date info --> 
165										<#assign relatedEventDate = "" /> 
166										<#if relatedEventDateCustom != ""> 
167											<#assign relatedEventDate = relatedEventDateCustom /> 
168										<#elseif (relatedEventDateEnd > 0) > 
169											<#assign relatedEventDate = '${dateUtil.getDate(relatedEventDateIniObj, "MMMM dd yyyy", locale)} - ${dateUtil.getDate(relatedEventDateEndObj, "MMMM dd yyyy", locale)}' /> 
170										<#else> 
171											<#assign relatedEventDate = '${dateUtil.getDate(relatedEventDateIniObj, "MMMM dd yyyy", locale)}' /> 
172										</#if> 
173 
174										<#-- HTML content --> 
175										<div class="property-small clearfix"> 
176											<div class="property-small-picture col-sm-12 col-md-4"> 
177												<#if relatedEventSmallImage != ""> 
178													<div class="property-small-picture-inner"> 
179														<a href="${relatedEventUrl}" class="property-small-picture-target"> 
180															<img src="${relatedEventSmallImage}" alt=""> 
181														</a> 
182													</div> 
183												</#if> 
184											</div> 
185 
186											<div class="property-small-content col-sm-12 col-md-8"> 
187												<h3 class="property-small-title"><a href="${relatedEventUrl}">${relatedEventTitle}</a></h3> 
188												<div class="property-small-price custom-color-light">${relatedEventDate}</div> 
189												<div class="caps custom-color-light">${relatedEventVenue}</div> 
190											</div> 
191										</div> 
192									</#list> 
193 
194								</div> 
195							</div> 
196						</div> 
197					</div> 
198				</div> 
199			</#if> 
200		</div> 
201	</div> 
202</div>