CNB press releases
An error occurred while processing the template.
Java method "com.liferay.journal.web.internal.asset.model.JournalArticleAssetRenderer.getURLViewInContext(com.liferay.portal.kernel.portlet.LiferayPortletRequest, com.liferay.portal.kernel.portlet.LiferayPortletResponse, String)" threw an exception when invoked on com.liferay.journal.web.internal.asset.model.JournalArticleAssetRenderer object "com.liferay.journal.web.internal.asset.model.JournalArticleAssetRenderer@59cc5b40"; see cause exception in the Java stack trace. ---- FTL stack trace ("~" means nesting-related): - Failed at: #assign viewURL = assetRenderer.getUR... [in template "20155#20195#749666" at line 31, column 13] ----
1<#include "${templatesPath}/ADT-FUNCTIONS" />
2
3<style>
4 .hnb-body .article-module.lucene .article-linebanner, .hnb-body .article-module.lucene .entry-container {min-height:70px;}
5 .hnb-body .entry-container {
6 border-top: 1px solid #eeeef0!important;
7 }
8 .hnb-body .article-calendarlinebanner h5 {
9 border:0px;
10 }
11 .hnb-body .article-module.white .entry-container {
12 border:0px;
13 }
14 .hnb-body .article-module .article-linebanner h5 {
15 padding: 4px 0;
16 }
17 .hnb-body h5 table {
18 margin: 0 0 4px 0;
19 }
20</style>
21
22<div class="article-module article white lucene">
23
24 <#if entries?has_content>
25 <#list entries as curEntry>
26
27 <#assign naslov = curEntry.getTitle(locale)/>
28
29 <#assign assetRenderer = curEntry.getAssetRenderer() />
30 <#assign viewURL = assetPublisherHelper.getAssetViewURL(renderRequest, renderResponse, curEntry) />
31 <#assign viewURL = assetRenderer.getURLViewInContext(renderRequest, renderResponse, viewURL) />
32
33 <#if assetRenderer.getClassName() == "com.liferay.journal.model.JournalArticle">
34
35 <#assign article = assetRenderer.getArticle() />
36
37 <#assign godina = getField(article, 'godina')/>
38 <#assign tekst = getField(article, 'tekst')/>
39 <#assign tekst = getField(article, 'tekst')/>
40
41 <#-- DATE -->
42 <#assign datum_azuriranja = getField(article, 'datum_azuriranja') />
43 <#assign datum_objave = getField(article, 'datum_objave') />
44 <#if datum_azuriranja?has_content>
45 <#assign datum = datum_azuriranja />
46 <#elseif datum_objave?has_content>
47 <#assign datum = datum_objave />
48 </#if>
49
50 <div class="entry-container">
51 <div class="article-linebanner">
52 <h4 class="title">
53 <a href="${viewURL}">${naslov}</a>
54 </h4>
55 <h5>
56 <table>
57 <tbody>
58 <#if datum?has_content >
59 <tr>
60 <!--th>${languageUtil.get(locale,"templates.publications.table.date")}</th-->
61 <td>${formatDateString(datum)}</td>
62 </tr>
63 </#if>
64 <#if godina?has_content && !datum?has_content>
65 <tr>
66 <th>${languageUtil.get(locale,"templates.publications.table.year")}</th>
67 <td>${godina}.</td>
68 </tr>
69 </#if>
70 </tbody>
71 </table>
72 </h5>
73 </div>
74 </div>
75 </#if>
76 </#list>
77 </#if>
78</div>