Novosti
Došlo je do pogreške prilikom obrade predloška.
The following has evaluated to null or missing: ==> .vars['reserved-article-display-date'] [in template "20115#20151#62281" at line 7, column 21] ---- 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 newsDate = .vars["reserved-ar... [in template "20115#20151#62281" at line 7, column 1] ----
1<#assign serviceContext = staticUtil["com.liferay.portal.kernel.service.ServiceContextThreadLocal"].getServiceContext()>
2<#assign httpServletRequest = serviceContext.getRequest()>
3${portalUtil.setPageTitle("", httpServletRequest)}
4${portalUtil.setPageSubtitle("Novosti", httpServletRequest)}
5
6<#setting date_format="dd.MM.yyyy.">
7<#assign newsDate = .vars['reserved-article-display-date'].data>
8<#assign originalLocale = .locale>
9<#setting locale = localeUtil.getDefault()>
10<#assign newsDate = newsDate?datetime("EEE, d MMM yyyy HH:mm:ss Z")?date>
11<#assign locale = originalLocale>
12
13<section class="content content--news">
14 <#if .vars['reserved-article-description'].data?? && .vars['reserved-article-description'].data != "">
15 <p class="content__caption content__caption--hide">${.vars['reserved-article-description'].data}</p>
16 </#if>
17 <div class="news__item__date hide">${newsDate}</div>
18 <h1 class="content__title content__title--hide">${.vars['reserved-article-title'].data}</h1>
19 <#if Image.getData()?? && Image.getData() != "">
20 <img data-fileentryid="${Image.getAttribute("fileEntryId")}" alt="${Image.getAttribute("alt")}" src="${Image.getData()}" />
21 </#if>
22 ${content.getData()}
23</section>