TESZT PRESS RELEASE - AJBH-EN
Tartalom megjelenítő
null TESZT PRESS RELEASE
Hiba jelentkezett a sablon feldolgozása során.
Java method "com.sun.proxy.$Proxy917.getLatestArticle(long, String)" threw an exception when invoked on com.sun.proxy.$Proxy917 object "com.liferay.journal.service.impl.JournalArticleLocalServiceImpl@713c5686"; see cause exception in the Java stack trace.
----
FTL stack trace ("~" means nesting-related):
- Failed at: #assign journalArticle = journalArtic... [in template "10154#10192#" at line 6, column 5]
----
1<#if serviceLocator??>
2 <#assign journalArticleService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService") />
3 <#assign assetCategoryService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetCategoryLocalService") />
4 <#assign assetVocabularyLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetVocabularyLocalService") />
5
6 <#assign journalArticle = journalArticleService.getLatestArticle(getterUtil.getLong(groupId), .vars["reserved-article-id"].getData()) />
7
8 <#assign allCategories = assetCategoryService.getCategories("com.liferay.journal.model.JournalArticle", journalArticle.getResourcePrimKey()) />
9
10 <#assign categories = []/>
11
12 <#list allCategories as curCategory>
13
14 <#assign vocabularyId = curCategory.getVocabularyId() />
15 <#assign vocabulary = assetVocabularyLocalService.getVocabulary(vocabularyId)/>
16
17 <#if vocabulary?has_content>
18
19 <#assign visibilityType = vocabulary.getVisibilityType() />
20
21 <#if visibilityType == 0 >
22 <#assign categories = categories + [curCategory] />
23 </#if>
24 </#if>
25 </#list>
26
27 <#assign facebookUrl = htmlUtil.escape('https://www.facebook.com/sharer/sharer.php?u=') />
28
29 <#assign searchPage = themeDisplay.getThemeSetting("newsSearchPage")!"" />
30 <#assign ddmStructureKey = journalArticle.getDDMStructureKey() />
31
32 <h1>
33 ${Cim.getData()}
34 </h1>
35
36 <div class="ajbh-detailed-news-wrapper bg-white">
37
38 <div class="ajbh-news-header" aria-hidden="true">
39 <@getArticleCategoriesAndMetadata />
40 </div>
41
42 <div class="ajbh-news-content">
43 <#if (Image.getData())?? && Image.getData() != "">
44 <img alt="${Image.getAttribute("alt")}" data-fileentryid="${Image.getAttribute("fileEntryId")}" src="${Image.getData()}" class="w-100 pb-4" />
45 </#if>
46 <div class="lead">
47 ${Lead.getData()}
48 </div>
49
50 <hr aria-hidden="true" />
51
52 <div class="content">
53 ${Szoveg.getData()}
54 </div>
55 </div>
56
57 <hr aria-hidden="true" />
58
59 <div class="ajbh-news-footer">
60 <@getArticleCategoriesAndMetadata />
61 </div>
62 </div>
63
64 <#macro getArticleCategoriesAndMetadata>
65 <div class="ajbh-news-categories">
66 <span class="sr-only">A tartalom kategóriái:</span>
67 <#list categories as category>
68 <#assign categoryName = category.getName() />
69
70 <#assign searchPageURL = searchPage + "?ddmStructureKey=" + ddmStructureKey + "&category=" + category.getCategoryId() />
71
72 <a href="${searchPageURL}" class="ajbh-news-category"> ${categoryName} </a>
73 </#list>
74 </div>
75
76 <div class="ajbh-news-meta">
77 ${dateUtil.getDate(journalArticle.getDisplayDate(), "yyyy. MMMM. dd.", locale)}
78 <a
79 class="share-btn"
80 href='javascript:openPage("${facebookUrl}");'
81 aria-label="Megosztás">
82
83 <span class="ajbh-icon-icon-share" aria-hidden="true"></span>
84 </a>
85 </div>
86
87 </#macro>
88</#if>