Indietro

Notiziario FAI febbraio 2016

Notiziario FAI febbraio 2016

Il nostro primo Notiziario del 2016 contiene approfondimenti sui nostri servizi e progetti, dall'impegno con le persone sul territorio alla sensibilità per l'ambiente. Abbiamo raddoppiato il numero di articoli per affrirvi una panoramica completa dei nostri impegni con la comunità. Buona lettura!

Notiziario FAI num 1_2016


Si è verificato un errore nell'elaborarazione del modello.
Error on line 70, column 5 in 228290#228328#230026
assetRenderer.getURLViewInContext(renderRequest, renderResponse, viewURL) is undefined.
It cannot be assigned to viewURL
1<script> 
2 
3 
4 
5</script> 
6<style type="text/css"> 
7     
8    .grayBoxList { 
9        background-color: #edeaee; 
10        padding-top: 20px; 
11        padding-bottom: 20px; 
12        margin-top: 30px; 
13        padding-left: 20px; 
14        padding-right: 20px; 
15
16 
17    .grayBoxList .title { 
18        text-transform: uppercase; 
19        font-size: 1.4em; 
20        color: #7a2244; 
21         
22
23 
24    .grayBoxList h2 { 
25        text-transform: uppercase; 
26        color: #7a2244; 
27        font-size: 1.1em; 
28        line-height: 1.1; 
29        text-align: left; 
30
31 
32    .grayBoxList .data { 
33        font-size: 1.3em; 
34        color: #9a9296; 
35        text-align: left; 
36        padding-bottom: 10px; 
37
38 
39    .grayBoxList .text { 
40        font-size: 1.1em; 
41        color: #1d1d1b; 
42        text-align: left; 
43        padding-bottom: 20px; 
44
45 
46    .grayBoxList .singleBox { 
47        background-color: #fff; 
48        padding: 15px; 
49        margin-top: 20px; 
50
51</style> 
52 
53<#assign liferay_ui = taglibLiferayHash["/WEB-INF/tld/liferay-ui.tld"] /> 
54  
55<#assign AssetCategoryLocalService = serviceLocator.findService("com.liferay.portlet.asset.service.AssetCategoryLocalService")> 
56        <#assign categories = AssetCategoryLocalService.getCategories(entry.getClassName(), entry.getClassPK()) /> 
57                 
58        <#assign categoryname = "" > 
59        <#assign linkName=""> 
60         
61        <div class="grayBoxList"> 
62         
63            <@getMetadataField fieldName="categories" /> 
64    
65     
66<#list entries as entry> 
67    <#assign entry = entry /> 
68    <#assign assetRenderer = entry.getAssetRenderer() /> 
69    <#assign entryTitle = htmlUtil.escape(assetRenderer.getTitle(locale)) /> 
70    <#assign viewURL = assetRenderer.getURLViewInContext(renderRequest, renderResponse, viewURL) /> 
71 
72    <#assign className = assetRenderer.getClassName() /> 
73    <#assign imgnews = "" /> 
74    <#assign titolonews = "" /> 
75    <#assign Data = "" /> 
76    <#assign testonews = "" /> 
77 
78    <#if className == "com.liferay.portlet.journal.model.JournalArticle"> 
79 
80        <#assign journalArticle = assetRenderer.getArticle() > 
81        <#assign document = saxReaderUtil.read(journalArticle.getContent())> 
82        <#assign rootElement = document.getRootElement()> 
83 
84         
85        <#assign  stringSelector = "dynamic-element[@name='Data']/dynamic-content[@language-id = '" + locale + "']"> 
86        <#assign  xPathSelector = saxReaderUtil.createXPath(stringSelector)> 
87        <#if xPathSelector.selectSingleNode(rootElement)??> 
88           <#assign Data = xPathSelector.selectSingleNode(rootElement).getStringValue()> 
89        </#if> 
90         
91        <#assign  stringSelector = "dynamic-element[@name='Titolo']/dynamic-content[@language-id = '" + locale + "']"> 
92        <#assign  xPathSelector = saxReaderUtil.createXPath(stringSelector)> 
93        <#if xPathSelector.selectSingleNode(rootElement)??> 
94           <#assign titolonews = xPathSelector.selectSingleNode(rootElement).getStringValue()> 
95        </#if> 
96 
97        <#assign  stringSelector = "dynamic-element[@name='Testo']/dynamic-content[@language-id = '" + locale + "']"> 
98        <#assign  xPathSelector = saxReaderUtil.createXPath(stringSelector)> 
99        <#if xPathSelector.selectSingleNode(rootElement)??> 
100           <#assign testonews = xPathSelector.selectSingleNode(rootElement).getStringValue()> 
101        </#if> 
102         
103        <div class="singleBox"> 
104 
105         
106            <a href="${viewURL}" target="_top" style="color: #7a2244;"><h2>${titolonews}</h2></a> 
107 
108            <div class="data">${Data}</div> 
109             
110            <div class="text"><a href="${viewURL}" target="_top" style="color: #7a2244;">Continua a leggere...</a></div> 
111             
112         
113        </div> 
114    </#if> 
115 
116</#list> 
117</div> 
118         
119         
120        <#macro getMetadataField fieldName> 
121            <#if stringUtil.split(metadataFields)?seq_contains(fieldName)> 
122                <#if fieldName == "categories"> 
123                    <#assign Fatto = 0>  
124                    <#assign AssetCategoryLocalService = serviceLocator.findService("com.liferay.portlet.asset.service.AssetCategoryLocalService")> 
125                    <#assign categories = AssetCategoryLocalService.getCategories(entry.getClassName(), entry.getClassPK()) /> 
126                    <#list categories as cat> 
127                        <#if  Fatto == 0 > 
128                        <#assign Fatto = 1> 
129                            <#if  cat.getName()  =="Novita" > 
130                         
131                            <div class="title">Novit&agrave;</div> 
132                         
133                            <#else> 
134 
135                            <div class="title">Consigli</div> 
136                            </#if> 
137                        </#if> 
138                    </#list> 
139                </#if> 
140            </#if> 
141        </#macro>