Últimas Noticias

Se ha producido un error al procesar la plantilla.
Java method "com.liferay.journal.web.internal.asset.model.JournalArticleAssetRenderer.getURLViewInContext(com.liferay.portal.kernel.portlet.LiferayPortletRequest, com.liferay.portal.kernel.portlet.LiferayPortletResponse, String)" threw an exception when invoked on com.liferay.journal.web.internal.asset.model.JournalArticleAssetRenderer object "com.liferay.journal.web.internal.asset.model.JournalArticleAssetRenderer@5ba8c196"; see cause exception in the Java stack trace.

----
FTL stack trace ("~" means nesting-related):
	- Failed at: #assign viewURL = assetRenderer.getUR...  [in template "20101#20127#1220101" at line 136, column 21]
----
1<#setting locale="${locale}" /> 
2<style> 
3 
4    .destacados .img-thumbnail { 
5      height: 170px; 
6      width: 200px; 
7      padding: 0px; 
8      border-radius: 0px; 
9      object-fit: cover; 
10
11 
12    .noticias .destacados .image { 
13      height: 170px; 
14
15 
16    .destacados .sub-title { 
17      font-size: var(--fs-15); 
18      text-transform: uppercase; 
19      color: #416383; 
20
21 
22    .destacados .sub-title { 
23      margin-top: 18px; 
24
25 
26    .destacados .title { 
27      font-size: var(--h4-font-size); 
28      color: var(--secondary); 
29      font-weight: bold; 
30
31 
32 
33    .destacados .item { 
34      padding: 0px 10px 10px 0px 
35
36     
37    .destacados .item a, .destacados .item a:hover, .destacados .item a:active { 
38        color: var(--secondary); 
39        text-decoration: inherit; 
40
41 
42    .destacados .item .title a:hover, .destacados .item .title a:active { 
43        color: var(--primary); 
44
45 
46    .destacados .item .col-7 { 
47      padding-left: 0%; 
48
49     
50    .destacados .item hr { 
51        background-color: var(--gray-500); 
52
53 
54    @media (max-width: 576px) and (orientation: portrait)  { 
55      .destacados .sub-title { 
56        display: none; 
57
58 
59 
60      .destacados .title { 
61        padding: 0%; 
62        font-size: var(--fs-15); 
63
64       
65      .taglib-page-iterator .lfr-pagination-buttons > li { 
66        width: 47%; 
67
68 
69
70     
71    .page-item { 
72        background-color: var(--primary); 
73        border-radius: 0px; 
74        border: 0.0625rem solid transparent; 
75        padding: 0.4375rem 0.9375rem; 
76        font-weight: 600; 
77        line-height: 1.5; 
78
79     
80    .page-item a { 
81        color: var(--white); 
82
83     
84    .lfr-pagination-buttons .first, .lfr-pagination-buttons .last { 
85        background-color: var(--secondary); 
86
87     
88     
89</style> 
90<div class="destacados"> 
91<div class="container-fluid"> 
92    <#if entries?has_content> 
93    	<#list entries as curEntry> 
94        	<#assign 
95                assetRenderer = curEntry.getAssetRenderer() 
96                journalArticle = assetRenderer.getAssetObject() 
97                document = saxReaderUtil.read(journalArticle.getContent()) 
98                rootElement = document.getRootElement() 
99                 
100                titulo = saxReaderUtil.createXPath("dynamic-element[@name='Text26063132']").selectSingleNode(rootElement).getStringValue()!"#000000" 
101                 
102                subtitulo = saxReaderUtil.createXPath("dynamic-element[@name='Text42126831']").selectSingleNode(rootElement).getStringValue()!"#FFFFFF" 
103                 
104                contenido = saxReaderUtil.createXPath("dynamic-element[@name='RichText72277116']").selectSingleNode(rootElement).getStringValue()!"#000000" 
105                 
106                viewURL = assetPublisherHelper.getAssetViewURL(renderRequest, renderResponse, curEntry) 
107                 
108                urlImage = journalArticle.smallImageURL 
109                altImage = "Imagen alusiva al contenido" 
110            /> 
111 
112                <#assign textElement = saxReaderUtil.createXPath("dynamic-element[@name='Text35644467']") /> 
113                <#if textElement.selectNodes(rootElement)?has_content> 
114                    <#assign singleNodeElement = textElement.selectSingleNode(rootElement) /> 
115                    <#if singleNodeElement??> 
116                        <#assign altImage = singleNodeElement.getStringValue()!"Imagen alusiva al contenido" /> 
117                    </#if> 
118                </#if> 
119                 
120                <#if altImage?trim?length <= 0> 
121                    <#assign altImage = "Imagen alusiva al contenido" /> 
122                </#if> 
123 
124            <#if altImage?trim?length <= 0> 
125                <#assign altImage = "Imagen alusiva al contenido" /> 
126            </#if> 
127 
128            <#if !journalArticle.getSmallImage()> 
129                <#assign  
130                    urlImage = "/documents/20127/632755/logo_news.svg/15146bab-0bb7-cb62-240a-f78a1f7f7fc5?t=1630598505627" 
131                    altImage = "Logo Contraloría General de la Republica" 
132                /> 
133            </#if> 
134 
135            <#if assetLinkBehavior != "showFullContent" && viewURL?has_content> 
136                    <#assign viewURL = assetRenderer.getURLViewInContext(renderRequest, renderResponse, viewURL)!assetPublisherHelper.getAssetViewURL(renderRequest, renderResponse, curEntry) /> 
137                </#if> 
138 
139        		<div class="item"> 
140                    <div class="row"> 
141                        <div class="col-6 col-md-5 col-md-5 col-xl-3"> 
142                            <a href="${viewURL}?linktype=0"> 
143                                <img class="img-thumbnail" src="${urlImage}" alt="${altImage}_${curEntry?index}" longdesc="${urlImage}"> 
144                            </a> 
145                        </div> 
146                        <div class="col-6 col-md-7 col-md-7 col-xl-9"> 
147                            <div class="row"> 
148                                <div class="col col-12 title"> 
149                                    <a href="${viewURL}?linktype=1" aria-label="Leer más sobre... ${titulo}"> 
150                                        ${titulo} 
151                                    </a> 
152                                </div> 
153                                <div class="col col-12 sub-title"> 
154                                Bogotá, ${curEntry.getPublishDate()?date} 
155                                </div> 
156                            </div> 
157                        </div> 
158                    </div> 
159                </div> 
160                <hr class="mx-8" /> 
161    	</#list> 
162    <#else> 
163        <h3>No se encontraron elementos</h3> 
164    </#if> 
165    </div>  
166</div> 
167 
168<script> 
169    window.onload = function() { 
170        document.querySelectorAll("li.page-item").forEach( (x, i) => { 
171            x.classList.add("btn"); 
172        }); 
173
174</script> 

Información de  interes

0 Contador de visitas