Si è verificato un errore nell'elaborarazione del modello.
The following has evaluated to null or missing:
==> .vars['reserved-article-display-date']  [in template "109076#109106#132106" at line 10, column 24]

----
Tip: It's the final [] step that caused this error, not those before it.
----
Tip: If the failing expression is known to be 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: #assign displayDate = .vars["reserved...  [in template "109076#109106#132106" at line 10, column 1]
----
1<#assign LayoutLocalService = serviceLocator.findService("com.liferay.portal.kernel.service.LayoutLocalService")> 
2<#assign layout = LayoutLocalService.getLayout(layout.getPlid()) /> 
3<#assign parentLayout = LayoutLocalService.getLayout(layout.getAncestorPlid()) /> 
4<#assign parentLayoutName = parentLayout.getName(locale) /> 
5<#assign parentLayoutUrl = parentLayout.getFriendlyURL(locale) /> 
6 
7<#setting time_zone = languageUtil.get(locale, "template-timezone") />  
8<#assign originalLocale = locale />  
9<#setting locale = localeUtil.getDefault() />  
10<#assign displayDate = .vars['reserved-article-display-date'].data />  
11<#assign displayDate = displayDate?datetime("EEE, d MMM yyyy HH:mm:ss Z") />  
12<#setting locale = originalLocale />  
13<#assign displayDateDay = displayDate?string("dd") />  
14<#assign displayDateMonth = displayDate?string("MMMM") />   
15<#assign displayDateYear = displayDate?string("YYYY") />   
16 
17<#assign journalArticleId = .vars['reserved-article-id'].data> 
18<#assign journalArticleResourceLocalServiceUtil = staticUtil["com.liferay.journal.service.JournalArticleResourceLocalServiceUtil"]> 
19<#assign assetCategoryLocalServiceUtil = staticUtil["com.liferay.asset.kernel.service.AssetCategoryLocalServiceUtil"]> 
20<#assign articleResourcePK = journalArticleResourceLocalServiceUtil.getArticleResourcePrimKey(groupId, journalArticleId)/> 
21<#assign categoryList=assetCategoryLocalServiceUtil.getCategories("com.liferay.journal.model.JournalArticle",articleResourcePK) > 
22 
23<div class="article"> 
24    <div class="bg-nav py-4 mb-5 mb-md-7"> 
25        <div class="container"> 
26            <div class="d-flex align-items-center justify-content-between"> 
27                <h2 class="h4 mb-0">BLOG</h2> 
28                <ul class="m-0 p-0 list-unstyled list-inline"> 
29                    <li class="list-inline-item font-weight-light mr-0"> 
30                        <a href="${themeDisplay.getPathFriendlyURLPublic()}${themeDisplay.getScopeGroup().getFriendlyURL()}${parentLayoutUrl}"> 
31                            ${parentLayoutName} / 
32                        </a> 
33                    </li> 
34                    <li class="list-inline-item mr-0"> 
35                        ${.vars['reserved-article-title'].data} 
36                    </li> 
37                </ul> 
38            </div> 
39        </div> 
40    </div> 
41    <div class="container"> 
42        <div class="row"> 
43            <div class="col-md-9 mb-6 mb-sm-0"> 
44                <#if Image.getData() !=''> 
45                    <img src="${Image.getData()}" alt="${.vars['reserved-article-title'].data}" class="mb-4" /> 
46                </#if> 
47                <div class="date mb-2"> 
48                    ${displayDateDay} ${displayDateMonth} ${displayDateYear} / Autore: ${.vars['reserved-article-author-name'].data} 
49                </div> 
50                <h1 class="font-weight-bold mb-3">${.vars['reserved-article-title'].data}</h1> 
51                <#if Text.getData() !=''> 
52                    <div class="text mb-4"> 
53                        ${Text.getData()} 
54                    </div> 
55                </#if> 
56                <div class="metadati d-flex align-items-center justify-content-between mb-4 py-2"> 
57                    <div>    
58                        <#list categoryList as categoryList> 
59                            <div class="pr-3 d-inline-block">${categoryList.getName()}</div> 
60                        </#list> 
61                    </div> 
62                    <div class="share"> 
63                        <div class="sharethis-inline-share-buttons"></div> 
64                    </div> 
65                </div> 
66                <a href="${themeDisplay.getPathFriendlyURLPublic()}${themeDisplay.getScopeGroup().getFriendlyURL()}${parentLayoutUrl}" class="btn btn-primary"> 
67                    Torna al blog > 
68                </a> 
69            </div> 
70            <div class="col-md-3"> 
71                <h6 class="font-weight-bold mb-3">Ultimo post</h6> 
72                <#assign preferencesAsset = {}> 
73                <@liferay_portlet["runtime"] 
74                    defaultPreferences=freeMarkerPortletPreferences.getPreferences(preferencesAsset) 
75                	portletProviderAction=portletProviderAction.VIEW 
76                	instanceId="lastpost" 
77                	portletName="com_liferay_asset_publisher_web_portlet_AssetPublisherPortlet"  
78                /> 
79                <#if RelatedProduct.getData() !=''> 
80                    <h6 class="font-weight-bold mb-3">Prodotti correlati</h6> 
81                	<#list RelatedProduct.getSiblings() as node> 
82                		<a href="${node.URL.getData()}" target="_blank" class="related-product d-block mb-5"> 
83                		    <#if node.Image1.getData() !=''> 
84                		        <img src="${node.Image1.getData()}" alt="${node.getData()}" class="mb-3" /> 
85                		    </#if> 
86                		    <span>${node.getData()}</span> 
87                		</a> 
88                	</#list> 
89                </#if> 
90            </div> 
91        </div> 
92    </div> 
93</div> 

Diventa punto vendita autorizzato

Compila il form di registrazione,
sarà un piacere conoscerti

Punto vendita

Leggi la nostra Privacy Policy e Cookie Policy