null Gestion de vos favoris sur StrasApp
Une erreur s'est produite lors du traitement du gabarit.
The following has evaluated to null or missing: ==> .vars['reserved-article-display-date'] [in template "20116#20160#5099213" at line 28, column 88] ---- Tip: It's the final [] step that caused this error, not those before it. ---- Tip: If the failing expression is known to legally refer to something that's sometimes null or missing, either specify a default value like myOptionalVar!myDefault, or use <#if myOptionalVar??>when-present<#else>when-missing</#if>. (These only cover the last step of the expression; to cover the whole expression, use parenthesis: (myOptionalVar.foo)!myDefault, (myOptionalVar.foo)?? ---- ---- FTL stack trace ("~" means nesting-related): - Failed at: ${dateHelperService.displayShortDate(... [in template "20116#20160#5099213" at line 28, column 13] ----
1<!-- Webmag - breve -->
2<#setting locale = locale />
3<#-- Récupération de DateHelper pour le format date -->
4<#assign dateHelperService = serviceLocator.findService("eu.strasbourg.utils.api.DateHelperService") />
5<#assign serviceContext = staticUtil["com.liferay.portal.kernel.service.ServiceContextThreadLocal"].getServiceContext() />
6<#assign request = serviceContext.getRequest()/>
7
8<#assign imageUrl = ""/>
9<!-- image -->
10<#if image.getData()?has_content>
11 <#assign imageUrl = themeDisplay.getPortalURL() + image.getData()?replace('@', "")?replace('cdn_hostroot_path', "") />
12</#if>
13
14<#-- Liste des infos a partager -->
15<#assign openGraph = {
16"og:title":"${title.getData()?html}",
17"og:description":'${chapo.getData()?replace("<[^>]*>", "", "r")?html}',
18"og:image":"${imageUrl}"
19} />
20<#-- partage de la configuration open graph dans la request -->
21${request.setAttribute("LIFERAY_SHARED_OPENGRAPH", openGraph)}
22
23<main class="seu-container" style="margin-bottom: 50px">
24 <div class="detail-line">
25 <div class="filler"></div>
26 <p class="seu-published">
27 <@liferay_ui.message key="eu.published-on" />
28 ${dateHelperService.displayShortDate(dateHelperService.convertStringToDate(.vars['reserved-article-display-date'].getData(), "EEE, dd MMM yyyy hh:mm:ss Z"), locale)}
29 - <@liferay_ui.message key="eu.modified-on" />
30 ${dateHelperService.displayShortDate(dateHelperService.convertStringToDate(.vars['reserved-article-modified-date'].getData(), "EEE, dd MMM yyyy hh:mm:ss Z"), locale)}
31 </p>
32 </div>
33 <h1>
34 ${title.getData()}
35 </h1>
36 <div class="hat">
37 <div>
38 ${chapo.getData()}
39 </div>
40 </div>
41 <div class="rte">
42 ${content.getData()}
43 </div>
44</main>
45<style>
46.search-asset-portlet, .page-header {
47 display: none !important;
48}
49</style>