News & Eventi

Si è verificato un errore nell'elaborarazione del modello.
Expression AssetEntry.getAssetRenderer() is undefined on line 9, column 38 in 20155#20195#44437.
1<#assign AssetEntryLocalService = serviceLocator.findService("com.liferay.portlet.asset.service.AssetEntryLocalService")> 
2 
3<#assign serviceContext = staticUtil["com.liferay.portal.service.ServiceContextThreadLocal"].getServiceContext()> 
4<#assign httpServletRequest = serviceContext.getRequest()> 
5<#assign RecordId="${(httpServletRequest.getParameter('articleId')?html)!''}"> 
6 
7<#assign AssetEntry = AssetEntryLocalService.getAssetEntry(RecordId?number)> 
8 
9<#assign docXml = saxReaderUtil.read(AssetEntry.getAssetRenderer().getArticle().getContent()) /> 
10<#assign Titolo = docXml.valueOf("//dynamic-element[@name='Titolo']/dynamic-content/text()") /> 
11<#assign Data = docXml.valueOf("//dynamic-element[@name='DataArticolo']/dynamic-content/text()") /> 
12<#assign Testo = docXml.valueOf("//dynamic-element[@name='Testo']/dynamic-content/text()") /> 
13<#assign Immagine = docXml.valueOf("//dynamic-element[@name='ImmagineCopertina']/dynamic-content/text()") /> 
14 
15<div class="asset-full-content container-fluid"> 
16    <div class="row"> 
17    <#if Immagine != ""> 
18        <div class="col-md-6 col-xs-12"> 
19            <img src="${Immagine}" alt="${Titolo}"/> 
20        </div> 
21    </#if> 
22        <div class="col-md-6 col-xs-12"> 
23            <h1>${Titolo}</h1> 
24            <p class="date">${AssetEntry.modifiedDate?date}</p> 
25             
26        </div> 
27    </div> 
28    <div class="row"> 
29        <div class="col-md-12"> 
30            <p class="text">${Testo}</p> 
31        </div> 
32    </div> 
33</div> 
34 
35<!-- Go to www.addthis.com/dashboard to customize your tools --> <script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-5d711faadef7caa2"></script>