Aktualne nagradne igre
Prišlo je do napake pri odpiranju teme.
Java method "com.sun.proxy.$Proxy1381.getArticle(long, String)" threw an exception when invoked on com.sun.proxy.$Proxy1381 object "com.liferay.journal.service.impl.JournalArticleLocalServiceImpl@e56be6e"; see cause exception in the Java stack trace.
----
FTL stack trace ("~" means nesting-related):
- Failed at: #assign card_article = journalArticle... [in template "20099#20125#525602" at line 62, column 15]
----
1<#assign theme_js_path = themeDisplay.getPathThemeJavaScript() />
2<#assign theme_css_path = themeDisplay.getPathThemeCss() />
3
4<#assign journalArticleLocalService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService") />
5
6<#assign show_custom_title = false />
7
8<#assign portlet_preferences = portletDisplay.getPortletSetup() />
9<#assign portlet_preferences_map = portlet_preferences.getMap() />
10
11<#if portlet_preferences_map?? && portlet_preferences_map["portletSetupUseCustomTitle"]??>
12 <#assign VOID = portlet_preferences.setValue("portletSetupUseCustomTitle", "false") />
13 <#assign show_custom_title = portlet_preferences_map["portletSetupUseCustomTitle"][0]?boolean />
14</#if>
15
16
17${portletDisplay.setShowPortletCssIcon(true)}
18
19<#assign is_asset_card = true />
20
21<#list portletPreferences as key, value_sequence>
22 <#if key == "anyAssetType" && value_sequence[0] == "true">
23 <#assign is_asset_card = false />
24 </#if>
25</#list>
26
27<#if entries?has_content>
28 <#assign assetRenderer = entries[0].getAssetRenderer() />
29 <#assign className = assetRenderer.getClassName() />
30
31 <#if className == "com.liferay.journal.model.JournalArticle">
32 <#assign assetClassTypeId = entries[0].getClassTypeId() />
33
34 <#assign DDMStructureLocalServiceUtil = staticUtil["com.liferay.dynamic.data.mapping.service.DDMStructureLocalServiceUtil"] />
35
36 <#assign structure = DDMStructureLocalServiceUtil.getStructure(assetClassTypeId) />
37 <#assign structure_name = structure.getName(locale)?trim?upper_case />
38
39 <#if structure_name != "ZAME CARD" && structure_name != "PRODUCT CARD">
40 <#assign is_asset_card = false />
41 </#if>
42 <#else>
43 <#assign is_asset_card = false />
44 </#if>
45</#if>
46
47<#if is_asset_card>
48 <link rel="stylesheet" href="${theme_css_path}/components-standalone/badges-and-filters.css" />
49
50 <div id="product-cards-list-${randomNamespace}">
51 <div class="container">
52 <div class="row justify-content-center">
53 <#if entries?has_content>
54 <#list entries as curEntry>
55 <div class="col-lg-4 col-md-6 mb-4">
56 <#assign assetRenderer = curEntry.getAssetRenderer() />
57 <#assign asset_object = assetRenderer.getAssetObject() />
58 <#assign card_article_id = asset_object.articleId />
59
60 <#assign group_id = themeDisplay.getScopeGroupId() />
61
62 <#assign card_article = journalArticleLocalService.getArticle(getterUtil.getLong(group_id), card_article_id) />
63 <#assign card_template_ddm_key = card_article.getDDMTemplateKey() />
64
65 <#assign card_article_content = journalArticleLocalService.getArticleDisplay(getterUtil.getLong(group_id), card_article_id, card_template_ddm_key, "", locale, themeDisplay).getContent() />
66
67 ${card_article_content}
68 </div>
69
70 </#list>
71 </#if>
72 </div>
73 </div>
74 </div>
75<#else>
76 <div class="container">
77 <div class="alert alert-danger">You're using "Product cards list" template. Please choose Product card or ZAME card as asset type!</div>
78 </div>
79</#if>
Pretekle nagradne igre
V spodnjem seznamu lahko preverite pretekle nagradne igre in nagrajence v posamezni nagradni igri.
Prišlo je do napake pri odpiranju teme.
Java method "com.sun.proxy.$Proxy1381.getArticle(long, String)" threw an exception when invoked on com.sun.proxy.$Proxy1381 object "com.liferay.journal.service.impl.JournalArticleLocalServiceImpl@e56be6e"; see cause exception in the Java stack trace.
----
FTL stack trace ("~" means nesting-related):
- Failed at: #assign accordion_article = journalAr... [in template "20099#20125#525605" at line 73, column 11]
----
1<#assign theme_css_path = themeDisplay.getPathThemeCss() />
2
3<#assign journalArticleLocalService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService") />
4<#assign group_id = getterUtil.getLong(themeDisplay.getScopeGroupId()) />
5
6${portletDisplay.setShowPortletCssIcon(true)}
7
8<#assign show_custom_title = false />
9
10<#assign portlet_preferences = portletDisplay.getPortletSetup() />
11<#assign portlet_preferences_map = portlet_preferences.getMap() />
12
13<#if portlet_preferences_map?? && portlet_preferences_map["portletSetupUseCustomTitle"]??>
14 <#assign VOID = portlet_preferences.setValue("portletSetupUseCustomTitle", "false") />
15 <#assign show_custom_title = portlet_preferences_map["portletSetupUseCustomTitle"][0]?boolean />
16</#if>
17
18<#assign is_asset_accordion = true />
19
20<#list portletPreferences as key, value_sequence>
21 <#if key == "anyAssetType" && value_sequence[0] == "true">
22 <#assign is_asset_accordion = false />
23 </#if>
24</#list>
25
26<#if entries?has_content>
27 <#assign assetRenderer = entries[0].getAssetRenderer() />
28 <#assign className = assetRenderer.getClassName() />
29
30 <#if className == "com.liferay.journal.model.JournalArticle">
31 <#assign assetClassTypeId = entries[0].getClassTypeId() />
32
33 <#assign DDMStructureLocalServiceUtil = staticUtil["com.liferay.dynamic.data.mapping.service.DDMStructureLocalServiceUtil"] />
34
35 <#assign structure = DDMStructureLocalServiceUtil.getStructure(assetClassTypeId) />
36 <#assign structure_name = structure.getName(locale)?trim?upper_case />
37
38 <#if structure_name != "ACCORDION">
39 <#assign is_asset_accordion = false />
40 <#else>
41 <#assign available_templates = structure.getTemplates() />
42
43 <#list available_templates as template>
44 <#assign template_name = template.getName(locale)?trim />
45
46 <#if template_name == "Accordion - standard">
47 <#assign ddmTemplateKey = template.getTemplateKey() />
48 </#if>
49
50 </#list>
51 </#if>
52 <#else>
53 <#assign is_asset_accordion = false />
54 </#if>
55</#if>
56
57<#if is_asset_accordion>
58 <link rel="stylesheet" href="${theme_css_path}/components-standalone/badges-and-filters.css" />
59 <link rel="stylesheet" href="${theme_css_path}/components-standalone/accordion.css" />
60
61 <section class="container" id="accordion-list-${randomNamespace}">
62 <#if show_custom_title>
63 <h2 class="g-headline-2 text-center">${portletDisplay.getTitle()}</h2>
64 </#if>
65
66 <div class="g-accordion-wrapper">
67 <#if entries?has_content>
68 <#list entries as curEntry>
69 <#assign assetRenderer = curEntry.getAssetRenderer() />
70 <#assign asset_object = assetRenderer.getAssetObject() />
71 <#assign accordion_article_id = asset_object.articleId />
72
73 <#assign accordion_article = journalArticleLocalService.getArticle(group_id, accordion_article_id) />
74
75 <#assign accordion_article_content = journalArticleLocalService.getArticleDisplay(group_id, accordion_article_id, ddmTemplateKey, "", locale, themeDisplay).getContent() />
76
77 ${accordion_article_content}
78 </#list>
79 </#if>
80 </div>
81 </section>
82<#else>
83 <div class="container">
84 <div class="alert alert-danger">You're using "Accordions list" template. Please choose Accordions as asset type!</div>
85 </div>
86</#if>