Si è verificato un errore nell'elaborarazione del modello.
Java method "com.liferay.portal.json.JSONFactoryImpl.createJSONObject(String)" threw an exception when invoked on com.liferay.portal.json.JSONFactoryImpl object "com.liferay.portal.json.JSONFactoryImpl@39e40fdc"; see cause exception in the Java stack trace.

----
FTL stack trace ("~" means nesting-related):
	- Failed at: #assign json = jsonFactoryUtil.create...  [in template "10154#10192#21663762" at line 89, column 33]
----
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 
19 
20<#assign values = portletPreferences['queryValues0'] /> 
21<#if values?has_content> 
22	<#list values as value> 
23		<#assign currentCat = AssetCategoryServiceUtil.getCategory(value?number) /> 
24		<#assign AssetVocabularyServiceUtil = staticUtil["com.liferay.asset.kernel.service.AssetVocabularyServiceUtil"]> 
25		<#assign assetVocabulary = AssetVocabularyServiceUtil.getVocabulary(currentCat.getVocabularyId()) /> 
26		<#if assetVocabulary.getName() == "Temi"> 
27            <#assign countViewAll = countViewAll + 1 /> 
28			<#if currentCat.getParentCategory()??> 
29				<#assign childCategoryId = currentCat.getCategoryId()/> 
30				<#assign parentCategoryId = currentCat.getParentCategory().getCategoryId() /> 
31			<#else> 
32				<#assign parentCategoryId = currentCat.getCategoryId()/> 
33			</#if> 
34		</#if> 
35	</#list> 
36</#if> 
37 
38<div class="rt-wrapper"> 
39    <section class="rt-section rt-section--news" aria-label="Sezione feed da Toscana Notizie"> 
40        <div class="rt-section-title-wrapper has-button"> 
41            <h2 class="rt-section-title">Da Toscana Notizie</h2> 
42            <#if parentCategoryId?? && parentCategoryId != 0 && (countViewAll < 2)> 
43                <#assign catSelected = AssetCategoryServiceUtil.getCategory(parentCategoryId?number) /> 
44                <#if catSelected?? > 
45                    <#assign catURL = catSelected.getName()?replace(' ', '-')?replace('à', 'a')?replace('ò', 'o')?replace('è', 'e')?replace('é', 'e')?replace('ù', 'u')?replace(',', '')?lower_case /> 
46                    <a href="http://www.toscana-notizie.it/${catURL?html}" target="_blank" class="rt-btn rt-btn-light rt-btn-view">Vedi tutti <i class="far fa-plus"></i></a> 
47                </#if> 
48            <#else> 
49                <a href="http://www.toscana-notizie.it/archivio" target="_blank" class="rt-btn rt-btn-light rt-btn-view">Vedi tutti <i class="far fa-plus"></i></a> 
50            </#if> 
51        </div> 
52 
53        <div class="rt-section__wrapper"> 
54            <#if !entries?has_content> 
55                <#if themeDisplay.isSignedIn()> 
56                    <div class="alert alert-info"> 
57                        <@liferay.language key="there-are-no-menu-items-to-display" /> 
58                    </div> 
59                </#if> 
60            </#if> 
61 
62            <#if entries?has_content>  
63                <#list entries as curEntry> 
64                    <#assign assetRenderer = curEntry.getAssetRenderer() /> 
65                    <#assign className = assetRenderer.getClassName() /> 
66                     
67                    <#assign rendererURL = siteBaseURL + "/-/" + assetRenderer.getUrlTitle() /> 
68 
69                    <#if className = "com.liferay.journal.model.JournalArticle" > 
70                        <#assign article = assetRenderer.getArticle() />  
71                        <#if article?? > 
72                            <#assign docXml = saxReaderUtil.read(article.getContent()) /> 
73 
74                            <#assign rendererURL = siteBaseURL + "/-/" + assetRenderer.getUrlTitle() /> 
75 
76                            <#assign titleText = htmlUtil.escape(curEntry.getTitle(locale)) /> 
77                            <#assign titleLength = titleText?length /> 
78 
79                            <#if (titleLength > 68) > 
80                                <#assign titleText = titleText?substring(0,68) /> 
81                                <#assign titleText = titleText + "..." /> 
82                            </#if> 
83 
84                            <#assign Immagine = docXml.valueOf("//dynamic-element[@name='Immagine']/dynamic-content/text()") /> 
85                             
86                            <#assign fileUrl = "" /> 
87                            <#assign altImg = "" /> 
88                            <#if Immagine?has_content> 
89                                <#assign json = jsonFactoryUtil.createJSONObject(Immagine) /> 
90                                <#assign nameImg = json.getString("name") /> 
91                                <#assign altImg = json.getString("alt") /> 
92                                <#assign fileEntryId = json.getLong("fileEntryId") /> 
93                                <#assign uuiD = json.getString("uuid") /> 
94                                <#assign groupId = json.getLong("groupId") /> 
95 
96                                <#if fileEntryId != 0> 
97                                    <#assign fileEntry = DLFileEntryLocalServiceUtil.getFileEntry(fileEntryId) />  
98                                    <#assign fileUrl = "/documents/" + fileEntry.getGroupId() + "/" + fileEntry.getFolderId() + "/" + fileEntry.getTitle() + "/" + fileEntry.getUuid() />  
99                                <#else> 
100                                    <#if groupId != 0 && uuiD != ""> 
101                                        <#assign fileEntry = DLFileEntryLocalServiceUtil.getFileEntryByUuidAndGroupId(uuiD,groupId) /> 
102                                        <#if fileEntry?? > 
103                                            <#assign fileUrl = "/documents/" + fileEntry.getGroupId() + "/" + fileEntry.getFolderId() + "/" + fileEntry.getTitle() + "/" + fileEntry.getUuid() />  
104                                        </#if>  
105                                    </#if> 
106                                </#if> 
107                            <#else> 
108                                <#assign fileUrl = imagePlaceHolderPath /> 
109                            </#if> 
110                             
111                            <div class="rt-box-news"> 
112                                <div class="rt-box-news__image"> 
113                                    <img src="${fileUrl?html}" alt="${titleText?html}"> 
114                                </div> 
115 
116                                <div class="rt-box-news__text"> 
117                                    <div class="rt-box-news__category"> 
118                                        <#if parentCategoryId?? && parentCategoryId != 0 && (countViewAll < 2) > 
119                                            <#assign catSelected = AssetCategoryServiceUtil.getCategory(parentCategoryId?number) /> 
120                                            <#if catSelected?? > 
121                                                ${catSelected.getName()} 
122                                            </#if> 
123                                        <#else> 
124                                            <#assign categoryList = AssetCategoryLocalServiceUtil.getAssetEntryAssetCategories(curEntry.getEntryId()) /> 
125 
126                                            <#list categoryList as category> 
127                                                <#assign AssetVocabularyServiceUtil = staticUtil["com.liferay.asset.kernel.service.AssetVocabularyServiceUtil"]> 
128                                                <#assign assetVocabulary = AssetVocabularyServiceUtil.getVocabulary(category.getVocabularyId()) /> 
129                                                <#if assetVocabulary.getName() == "Temi"> 
130                                                    ${category.getName()?html} 
131                                                </#if> 
132                                            </#list> 
133 
134                                        </#if> 
135                                    </div> 
136 
137                                     
138 
139                                    <div class="rt-box-news__title"> 
140                                         <a href="${rendererURL?html}" target="_blank"> 
141                                            ${titleText} 
142                                        </a> 
143                                    </div> 
144                                </div> 
145 
146                                <div class="rt-box-news__footer"> 
147                                    <a href="${rendererURL?html}" target="_blank" class="rt-btn rt-btn-light rt-btn-view">Continua</a> 
148                                </div> 
149 
150                            </div> 
151 
152                        </#if> 
153                    </#if> 
154                </#list> 
155            </#if>                     
156 
157        </div> 
158 
159    </section> 
160</div> 

Meteo Toscana.

Emissione di Giovedì, 25 Aprile 2024, ore 12.56

giovedì, 25 aprile 2024

Immagine previsioni del tempo

venerdì, 26 aprile 2024

Immagine previsioni del tempo
I codici allerta meteo
Nessuna Allerta
Allerta Gialla
Allerta Arancione
Allerta Rossa