Actualitat Actualitat

S'ha produït un error mentre es processava la plantilla.
Expression dynamicElement.element("dynamic-content") is undefined on line 59, column 40 in 10155#10193#1584184.
1<#assign serviceContext = staticUtil["com.liferay.portal.service.ServiceContextThreadLocal"].getServiceContext() /> 
2<#assign layout = serviceContext.getThemeDisplay() /> 
3 
4<#assign fullTemplatesPath = layout.getPathThemeRoot() + "_SERVLET_CONTEXT_/templates" /> 
5 
6<style> 
7.data-modified-news{ 
8    color: grey; 
9
10 
11.upf-asset-abstract{ 
12    margin-bottom:10px !important; 
13}     
14.upf-asset-abstract .asset-content{ 
15    word-break: normal !important;     
16
17</style> 
18 
19<#assign liferayPortletResponse = portalUtil.getLiferayPortletResponse(renderResponse) /> 
20<#assign liferayPortletRequest = portalUtil.getLiferayPortletRequest(renderRequest) /> 
21 
22<#if (entries?has_content) > 
23	<#list entries as entry> 
24     
25        <#assign renderer = entry.getAssetRenderer() /> 
26        <#assign className = renderer.getClassName() /> 
27 
28        <#assign viewFullContentURL = renderResponse.createRenderURL() /> 
29     
30        ${viewFullContentURL.setParameter("struts_action","/asset_publisher/view_content")} 
31        ${viewFullContentURL.setParameter("assetEntryId", entry.getEntryId()?string)} 
32        ${viewFullContentURL.setParameter("type", "content")} 
33 
34        <#if (assetLinkBehavior == "viewInPortlet") > 
35            <#assign viewURL = renderer.getURLViewInContext(liferayPortletRequest, liferayPortletResponse, viewFullContentURL?string) /> 
36        <#else> <#-- showFullContent --> 
37            <#assign viewURL = viewFullContentURL?string /> 
38        </#if> 
39 
40        <#if (className == "com.liferay.portlet.journal.model.JournalArticle" ) > 
41 
42			<#assign pubDate = entry.getModifiedDate()?datetime?string("EEE, dd MMM yyyy hh:mm:ss Z") /> 
43 
44            <#-- plantilla de URL de la vista --> 
45            <#assign template_view = fullTemplatesPath + "/assets/viewURL.ftl" /> 
46            <#include template_view > 
47 
48            <#assign journalArticle = renderer.getArticle() /> 
49            <#assign document = saxReaderUtil.read(journalArticle.getContentByLocale(localeUtil.toLanguageId(locale))) />  
50            <#assign rootElement = document.getRootElement() /> 
51 
52            <#-- plantilla de URL de la edición --> 
53            <#assign template_edit = fullTemplatesPath + "/assets/editURL.ftl" /> 
54            <#include template_edit >  
55 
56            <#list rootElement.elements() as dynamicElement > 
57                 
58                <#if ("Noticia" == dynamicElement.attributeValue("name") ) > 
59                    <#assign noticia = dynamicElement.element("dynamic-content").getText() /> 
60                </#if> 
61 
62                <#if ("Resum" == dynamicElement.attributeValue("name") ) > 
63                    <#assign resum = dynamicElement.element("dynamic-content").getText() /> 
64                </#if> 
65 
66            </#list> 
67 
68            <div class="asset-abstract upf-asset-abstract llistat_noticies"> 
69                <div class="lfr-meta-actions asset-actions"> 
70                 <#-- plantilla de la vista del botón --> 
71                 <#assign template_view_button = fullTemplatesPath + "/assets/viewEditButton.ftl" /> 
72                 <#include template_view_button > 
73                </div>           
74                <div class="data-modified-news">${entry.getPublishDate()?date?string("dd.MM.yyyy")} </div> 
75 
76                <#if (currentURL?contains("widget")) > 
77                    <h3 class="asset-title"><a href="${viewURL}">${entry.getTitle(locale)}</a></h3> 
78                <#else> 
79                    <h3 class="asset-title"><a href="${viewURL}/maximized">${entry.getTitle(locale)}</a></h3> 
80                </#if> 
81                <div class="asset-content"> 
82                    <#if (validator.isNotNull(resum)) > 
83                        ${resum} 
84                    <#else> 
85                        ${htmlUtil.stripHtml(stringUtil.shorten(noticia, 200))} 
86                    </#if> 
87                </div> 
88            </div> 
89        </#if> 
90    </#list> 
91</#if> 
— 10 Elements por pàgina
S'estan mostrant 1 - 10 de 31 resultats.