Aggregatore Risorse è temporaneamente non disponibile.
Aggregatore Risorse è temporaneamente non disponibile.
Si è verificato un errore nell'elaborarazione del modello.
The following has evaluated to null or missing:
==> curEntry.getAssetRenderer() [in template "10154#10192#18663137" at line 12, column 42]
----
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: #assign assetRenderer = curEntry.getA... [in template "10154#10192#18663137" at line 12, column 17]
----
1<#setting time_zone=timeZone.ID>
2<#setting locale=locale.toString()>
3<#setting datetime_format="dd MMMM yyyy">
4
5<#assign siteBaseURL = themeDisplay.getPortalURL() + themeDisplay.getPathFriendlyURLPublic() + themeDisplay.getLayout().getGroup().getFriendlyURL() />
6<section class="rtds-section rtds-py-8 md:rtds-py-12 ">
7<div class="rtds-container rtds-space-y-4">
8<div class="rtds-grid rtds-gap-4 md:rtds-gap-5 md:rtds-grid-cols-2" aria-label="Sezione degli ultimi aggiornamenti">
9
10 <#if entries?has_content>
11 <#list entries as curEntry>
12 <#assign assetRenderer = curEntry.getAssetRenderer() />
13 <#assign className = assetRenderer.getClassName() />
14
15 <#assign viewURL = assetPublisherHelper.getAssetViewURL(renderRequest, renderResponse, curEntry) />
16 <#assign URLInContext = curEntry.getAssetRenderer().getURLViewInContext(renderRequest, renderResponse, viewURL)>
17
18 <#assign rendererURL = assetRenderer.getURLViewInContext(renderRequest, renderResponse, "") />
19 <#if className = "com.liferay.journal.model.JournalArticle" >
20 <#assign article = assetRenderer.getArticle() />
21 <#if article?? >
22 <#assign docXml = saxReaderUtil.read(article.getContent()) />
23
24 <#assign titleText = curEntry.getTitle(locale)?truncate(100, '...') />
25
26 <#assign summaryText = curEntry.getSummary(locale)?truncate(100, '...') />
27
28 <#if !summaryText?has_content>
29 <#assign Didascalia = docXml.valueOf("//dynamic-element[@name='Didascalia']/dynamic-content/text()") />
30 <#if Didascalia?has_content >
31 <#assign summaryText = Didascalia?truncate(200, '...') />
32 <#else>
33 <#assign TitoloSecondario = docXml.valueOf("//dynamic-element[@name='TitoloSecondario']/dynamic-content/text()") />
34 <#if TitoloSecondario?has_content >
35 <#assign summaryText = TitoloSecondario?truncate(200, '...') />
36 </#if>
37 </#if>
38 </#if>
39
40 <#assign AssetCategoryLocalServiceUtil = staticUtil["com.liferay.asset.kernel.service.AssetCategoryLocalServiceUtil"]>
41 <#assign categoryList = curEntry.getCategories() />
42
43 <#-- questa è la categoria -->
44 <#assign TipologiaAggiornamento = docXml.valueOf("//dynamic-element[@name='TipologiaAggiornamento']/dynamic-content/text()") />
45
46 <#-- questo il testo -->
47 <#assign Testo>
48 <#assign summaryText = curEntry.getSummary(locale)?replace('<[^>]+>','','r') />
49 <#if summaryText?has_content>
50 <p>${summaryText?truncate(200, '...')}</p>
51 <#else>
52 <#assign Didascalia = docXml.valueOf("//dynamic-element[@name='Didascalia']/dynamic-content/text()") />
53 <#if Didascalia?? && Didascalia?has_content >
54 <p>${Didascalia?replace('<[^>]+>','','r')?truncate(200, '...')}</p>
55 <#else>
56 <#assign TitoloSecondario = docXml.valueOf("//dynamic-element[@name='TitoloSecondario']/dynamic-content/text()") />
57 <#if TitoloSecondario?? && TitoloSecondario?has_content >
58 ${TitoloSecondario?replace('<[^>]+>','','r')?truncate(200, '...')}</p>
59 </#if>
60 </#if>
61 </#if>
62 </#assign>
63 <div class="rtds-col">
64 <@rt.rtdsCard article=true category=TipologiaAggiornamento heading=titleText excerpt=Testo href=rendererURL/>
65 </div>
66 </#if>
67 </#if>
68 </#list>
69 <#else>
70 <h2>Al momento non ci sono contenuti per questa sezione.</h2>
71 </#if>
72 </div>
73</div>
74
75</section>
Aggregatore Risorse è temporaneamente non disponibile.
Aggregatore Risorse è temporaneamente non disponibile.
Si è verificato un errore nell'elaborarazione del modello.
The following has evaluated to null or missing:
==> curEntry.getAssetRenderer() [in template "10154#10192#21663762" at line 88, column 46]
----
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: #assign assetRenderer = curEntry.getA... [in template "10154#10192#21663762" at line 88, column 21]
----
1<#setting locale="it_IT">
2
3<#assign siteBaseURL = "https://www.toscana-notizie.it" />
4
5<#assign DLFileEntryLocalServiceUtil = staticUtil["com.liferay.document.library.kernel.service.DLFileEntryLocalServiceUtil"] />
6<#assign AssetCategoryLocalServiceUtil = staticUtil["com.liferay.asset.kernel.service.AssetCategoryLocalServiceUtil"]>
7
8<#assign LayoutLocalServiceUtil = staticUtil["com.liferay.portal.kernel.service.LayoutLocalServiceUtil"] />
9<#assign AssetCategoryServiceUtil = staticUtil["com.liferay.asset.kernel.service.AssetCategoryServiceUtil"] />
10
11<#assign childCategoryId = 0 />
12<#assign parentCategoryId = 0 />
13
14<#assign countViewAll = 0 />
15<#assign viewALLArchivio = "false" />
16
17<#assign imagePlaceHolderPath = themeDisplay.getTheme().getContextPath() + themeDisplay.getTheme().getImagesPath() + "/toscana-notizie-placeholder.png" />
18<#assign imagePath = themeDisplay.getPathThemeImages() />
19
20<#if portletPrefences?? && portletPreferences?has_content>
21<#assign values = portletPreferences['queryValues0'] />
22<#if values?has_content>
23 <#list values as value>
24 <#assign currentCat = AssetCategoryServiceUtil.getCategory(value?number) />
25 <#assign AssetVocabularyServiceUtil = staticUtil["com.liferay.asset.kernel.service.AssetVocabularyServiceUtil"]>
26 <#assign assetVocabulary = AssetVocabularyServiceUtil.getVocabulary(currentCat.getVocabularyId()) />
27 <#if assetVocabulary.getName() == "Temi">
28 <#assign countViewAll = countViewAll + 1 />
29 <#if currentCat.getParentCategory()??>
30 <#assign childCategoryId = currentCat.getCategoryId()/>
31 <#assign parentCategoryId = currentCat.getParentCategory().getCategoryId() />
32 <#else>
33 <#assign parentCategoryId = currentCat.getCategoryId()/>
34 </#if>
35 </#if>
36 </#list>
37</#if>
38</#if>
39
40
41<section class="rtds-section rtds-section--notizie rtds-py-8 md:rtds-py-12 rtds-background-09">
42 <div class="rtds-container rtds-space-y-4">
43 <div class="rtds-section-header rtds-section-header--notizie">
44 <div class="rtds-grid md:rtds-flex rtds-items-center rtds-gap-4 md:rtds-gap-6 rtds-content-inverse">
45 <div class="rtds-flex rtds-items-center rtds-gap-2 md:rtds-gap-4 rtds-order-2 md:rtds-order-none">
46
47 <h2 class="rtds-heading-3 md:rtds-heading-2">Notizie</h2>
48
49 <div class="rtds-vertical-divider rtds-w-4 md:rtds-w-6 lg:rtds-w-8">
50 <img class="rtds-w-full rtds-h-auto" src="${imagePath}/vertical-divider.svg" alt="">
51 </div>
52
53 <span class="rtds-text-sm rtds-leading-none">
54
55 <span>Da </span>
56 <a href="http://www.toscana-notizie.it/archivio" class="rtds-action-link rtds-content-inverse hover:rtds-content-inverse focus:rtds-content-inverse rtds-action-link--sm">
57 Toscana Notizie
58 <svg class="rtds-icon rtds-fill-current" aria-hidden="true" focusable="false" role="img">
59 <use href="${imagePath}/icons.svg#mini--arrow-small-right" />
60 </svg>
61
62 </a>
63 </span>
64
65 </div>
66
67 </div>
68 </div>
69
70 <div class="rtds-space-y-5">
71 <#if !entries?has_content>
72 <#if themeDisplay.isSignedIn()>
73 <div class="alert alert-info">
74 <@liferay.language key="there-are-no-menu-items-to-display" />
75 </div>
76 </#if>
77 </#if>
78
79
80 <#if entries?has_content && entries?size gt 0>
81 <#assign maxSize = (entries?size / 3)?floor * 3>
82 <#assign entries = entries[0..(maxSize - 1)]>
83
84
85 <div class="rtds-notizie-list rtds-grid rtds-gap-4 md:rtds-grid-cols-2 lg:rtds-grid-cols-3">
86
87 <#list entries as curEntry>
88 <#assign assetRenderer = curEntry.getAssetRenderer() />
89 <#assign className = assetRenderer.getClassName() />
90
91 <#assign rendererURL = siteBaseURL + "/-/" + assetRenderer.getUrlTitle() />
92
93 <#if className = "com.liferay.journal.model.JournalArticle" >
94 <#assign article = assetRenderer.getArticle() />
95 <#if article?? >
96 <#assign docXml = saxReaderUtil.read(article.getContent()) />
97
98 <#assign rendererURL = siteBaseURL + "/-/" + assetRenderer.getUrlTitle() />
99
100 <#assign titleText = htmlUtil.escape(curEntry.getTitle(locale))?truncate(70, '...') />
101
102 <#assign Immagine = docXml.valueOf("//dynamic-element[@name='Immagine']/dynamic-content/text()") />
103
104 <#assign fileUrl = imagePlaceHolderPath />
105 <#assign altImg = "" />
106 <#if Immagine?has_content>
107 <#assign json = jsonFactoryUtil.createJSONObject(Immagine) />
108 <#assign nameImg = json.getString("name") />
109 <#assign altImg = json.getString("alt") />
110 <#assign fileEntryId = json.getLong("fileEntryId") />
111 <#assign uuiD = json.getString("uuid") />
112 <#assign groupId = json.getLong("groupId") />
113
114 <#if fileEntryId != 0>
115 <#attempt>
116 <#assign fileEntry = DLFileEntryLocalServiceUtil.getFileEntry(fileEntryId) />
117 <#assign fileUrl = "/documents/" + fileEntry.getGroupId() + "/" + fileEntry.getFolderId() + "/" + fileEntry.getTitle() + "/" + fileEntry.getUuid() />
118 <#recover> </#attempt>
119 <#else>
120 <#if groupId != 0 && uuiD != "">
121 <#attempt>
122
123 <#assign fileEntry = DLFileEntryLocalServiceUtil.getFileEntryByUuidAndGroupId(uuiD,groupId) />
124
125 <#if fileEntry?? >
126 <#assign fileUrl = "/documents/" + fileEntry.getGroupId() + "/" + fileEntry.getFolderId() + "/" + fileEntry.getTitle() + "/" + fileEntry.getUuid() />
127
128 </#if>
129 <#recover>
130 </#attempt>
131 </#if>
132 </#if>
133 </#if>
134 <div class="rtds-col">
135 <article class="rtds-card rtds-card--news rtds-card--news-small rtds-card--horizontal rtds-card--horizontal-left is-card-fullclickable rtds-group/card">
136 <@rt.picture fileUrl titleText />
137 <div class="rtds-card__content">
138
139 <div class="rtds-card__heading">
140 <h3 class="rtds-card__title">
141 <a class="group-hover/card:rtds-underline " href="${rendererURL?html}">
142
143 ${titleText}
144
145 </a>
146 </h3>
147 <div class="rtds-card__metadata">
148
149 <div class="rtds-card__categories">
150 <span class="rtds-category ">
151 <#if parentCategoryId?? && parentCategoryId != 0 && (countViewAll < 2) >
152 <#assign catSelected = AssetCategoryServiceUtil.getCategory(parentCategoryId?number) />
153 <#if catSelected?? >
154 ${catSelected.getName()}
155 </#if>
156 <#else>
157 <#assign categoryList = curEntry.getCategories() />
158
159 <#list categoryList as category>
160 <#assign AssetVocabularyServiceUtil = staticUtil["com.liferay.asset.kernel.service.AssetVocabularyServiceUtil"]>
161 <#assign assetVocabulary = AssetVocabularyServiceUtil.getVocabulary(category.getVocabularyId()) />
162 <#if assetVocabulary.getName() == "Temi">
163 ${category.getName()?html}
164 </#if>
165 </#list>
166
167 </#if>
168 </span>
169 </div>
170
171 <div class="rtds-card__date">
172 <time datetime="${curEntry.publishDate?string["yyyy-MM-dd"]}">${curEntry.publishDate?string["dd.MM.yyyy"]}</time>
173 </div>
174
175 </div>
176 </div>
177 </div>
178 </article>
179 </div>
180 </#if>
181 </#if>
182 </#list>
183 </div>
184 </div>
185 </div>
186
187 </#if>
188
189</section>