Articolo con Sidebar - Dettaglio - Competenze Digitali
Si è verificato un errore nell'elaborarazione del modello.
The following has evaluated to null or missing: ==> Glossario.WebContentduoo [in template "10155#10195#6213450" at line 34, column 22] ---- Tip: It's the step after the last dot that caused this error, not those before it. ---- Tip: If the failing expression is known to 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: #if Glossario.WebContentduoo.getSibli... [in template "10155#10195#6213450" at line 34, column 17] ----
1<#setting locale="it_IT">
2
3<#setting time_zone=timeZone.ID>
4
5<#assign siteBaseURL = themeDisplay.getPortalURL() + "/web/competenze-digitali" />
6
7<#assign AssetEntryLocalServiceUtil = staticUtil["com.liferay.asset.kernel.service.AssetEntryLocalServiceUtil"] />
8<#assign JournalArticleLocalService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService")>
9<#assign DLFileEntryLocalServiceUtil = serviceLocator.findService('com.liferay.document.library.kernel.service.DLFileEntryLocalService') />
10
11<#assign journalArticleId = .vars['reserved-article-id'].data/>
12<#assign article = JournalArticleLocalService.getArticle(groupId, journalArticleId) />
13<#assign entry = AssetEntryLocalServiceUtil.fetchEntry("com.liferay.journal.model.JournalArticle", article.resourcePrimKey) />
14
15<#assign assetRenderer = entry.getAssetRenderer() />
16<#assign entryTitle = htmlUtil.escape(entry.getTitle(locale)?html) />
17
18<#assign AssetCategoryLocalServiceUtil = staticUtil["com.liferay.asset.kernel.service.AssetCategoryLocalServiceUtil"]>
19<#assign categoryList = entry.getCategories() />
20
21<#assign docXml = saxReaderUtil.read(article.getContent()) />
22
23<#assign cdTheme = ColoreDelBox.getData()?lower_case?replace('is', 'cd-theme')/>
24
25
26<#if getterUtil.getBoolean(Glossario.getData())>
27<div class="${cdTheme} ${ColoreDelBox.getData()}">
28<section class="cd-page-content">
29<div class="cd-page-body cd-page-body--dynamic">
30 <section class="cd-body-section cd-scrolling-section">
31 <h2 id="glossario"class="cd-padding-b-2">
32 Glossario
33 </h2>
34 <#if Glossario.WebContentduoo.getSiblings()?has_content>
35 <ul class="cd-body-glossary">
36 <#list Glossario.WebContentduoo.getSiblings() as Glossary >
37 <#assign journalArticleLocalService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService") />
38 <#assign assetEntryLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetEntryLocalService") />
39 <#assign webContentData = jsonFactoryUtil.createJSONObject(Glossary.getData()) />
40 <#assign asset = assetEntryLocalService.getEntry( webContentData.className, getterUtil.getLong( webContentData.classPK ) ) />
41 <#assign webArticle = asset.getAssetRenderer().getArticle() />
42 <#assign webArticleContent = journalArticleLocalService.getArticleContent( groupId, webArticle.getArticleId(), "", locale, themeDisplay ) />
43 <#assign glossaryAssetEntryId = asset.entryId />
44 <#assign glossaryAssetEntry = assetEntryLocalService.getEntry(glossaryAssetEntryId) />
45 <#assign glossaryAssetEntryPrimKey = asset.classPK />
46
47 <#if glossaryAssetEntry.getClassName() == 'com.liferay.journal.model.JournalArticle' >
48 <#assign glossaryArticle = JournalArticleLocalService.getLatestArticle(glossaryAssetEntryPrimKey) />
49 <#if glossaryArticle?? && glossaryArticle != "">
50
51 <#assign docXml = saxReaderUtil.read(glossaryArticle.getContent()) />
52 <#assign immagineVoce = docXml.valueOf("//dynamic-element[@name='ImmagineVoce']/dynamic-content/text()") />
53 <#assign descrizioneVoce = docXml.valueOf("//dynamic-element[@name='DescrizioneVoce']/dynamic-content/text()") />
54
55 <#if immagineVoce?has_content>
56 <#assign altImage = "Immagine Glossario" />
57
58 <#assign json = jsonFactoryUtil.createJSONObject(immagineVoce) />
59 <#assign nameImg = json.getString("name") />
60 <#assign altImg = json.getString("alt") />
61 <#assign fileEntryId = json.getLong("fileEntryId") />
62 <#assign uuiD = json.getString("uuid") />
63 <#assign uuiD = json.getString("uuid") />
64 <#assign groupId = json.getLong("groupId") />
65
66 <#if fileEntryId != 0>
67 <#assign fileEntry = DLFileEntryLocalServiceUtil.getFileEntry(fileEntryId) />
68 <#assign fileUrl = "/documents/" + fileEntry.getGroupId() + "/" + fileEntry.getFolderId() + "/" + fileEntry.getTitle() + "/" + fileEntry.getUuid() />
69 <#else>
70 <#if groupId != 0 && uuiD != "">
71 <#assign fileEntry = DLFileEntryLocalServiceUtil.getFileEntryByUuidAndGroupId(uuiD,groupId) />
72
73 <#if fileEntry?? >
74 <#assign fileUrl = "/documents/" + fileEntry.getGroupId() + "/" + fileEntry.getFolderId() + "/" + fileEntry.getTitle() + "/" + fileEntry.getUuid() />
75 <#else>
76 <#assign fileUrl = "${imagePath}/card-thumb.jpg" />
77 </#if>
78 <#else>
79 <#assign fileUrl = "${imagePath}/card-thumb.jpg" />
80 </#if>
81
82 </#if>
83
84 <#else>
85 <#assign fileUrl = "${imagePath}/card-thumb.jpg" />
86 </#if>
87
88 <li>
89 <img src="${fileUrl}" alt="altImage">
90 <div>
91 <h3 id="#glossario">
92 ${webContentData.title}
93 </h3>
94 <p>${descrizioneVoce}</p>
95 </div>
96 </li>
97 </#if>
98 </#if>
99 </#list>
100 </ul>
101 </#if>
102 </section>
103 </div>
104 </section>
105</div>
106 </#if>