prueba
persona uno
Se ha producido un error al procesar la plantilla.
The following has evaluated to null or missing: ==> xPathSelector.selectSingleNode(rootElement) [in template "20097#20123#19827125" at line 189, column 54] ---- Tip: If the failing expression is known to legally refer to something that's sometimes null or missing, either specify a default value like myOptionalVar!myDefault, or use <#if myOptionalVar??>when-present<#else>when-missing</#if>. (These only cover the last step of the expression; to cover the whole expression, use parenthesis: (myOptionalVar.foo)!myDefault, (myOptionalVar.foo)?? ---- ---- FTL stack trace ("~" means nesting-related): - Failed at: news_title = xPathSelector.selectSing... [in template "20097#20123#19827125" at line 189, column 41] ----
1<style type="text/css">
2h3.uni-title__text--dark {
3 font-family: 'Bebas Neue', serif;
4 font-size: 3rem;
5 font-weight: 400;
6 color: #1d1d1b;
7 text-align: center;
8}
9.image_uninorte {
10 width: 100%;
11 background-position: center center;
12 background-size: cover!important;
13}
14.continuar-noticias .icon-right{
15 margin-left:0.5rem;
16}
17
18.body_card_uninorte {
19 padding: 15px 25px 5px 25px;
20}
21.uni-card--grey {
22 background: #f4f4f4;
23}
24.uni-card__title {
25 font-family: 'Open Sans', sans-serif!important;
26 font-weight: bold!important;
27 font-style: italic!important;
28 font-size: 15px!important;
29 color: #aa2131;
30 margin-bottom: 0;
31 min-height: 60px;
32}
33.uni-card-link {
34 color: inherit;
35 text-decoration: none;
36}
37.uni-card-link:hover {
38 color: inherit;
39 opacity: .8;
40 transition: all .2s ease-in;
41}
42.uni-card__footer--align-right {
43 display: flex;
44 justify-content: flex-end;
45}
46.continuar-noticias {
47 font-family: 'Open Sans', sans-serif!important;
48 font-weight: 600!important;
49 font-size: 13px!important;
50 color: #1d1d1b;
51}
52.continuar-noticias:hover {
53 color: inherit;
54 opacity: .75;
55 transition: all .2s ease-in;
56}
57.uni-link--with-icon {
58 display: inline-flex;
59 align-items: center;
60}
61
62@media (min-width: 1200px){
63.container.adtnoticias {
64 max-width: 1140px;
65}
66}
67.uni-card-description {
68 font-family: 'Open Sans', sans-serif;
69 font-weight: 300;
70 font-size: 14px;
71 color: #1d1d1b;
72 min-height: 170px;
73}
74.uni-card__date {
75 color: #1d1d1b;
76 font-style: italic;
77 font-size: .875rem;
78 margin-bottom: 15px;
79 display: block;
80}
81.ver-mas-noticias {
82 font-family: 'Open Sans', sans-serif!important;
83 font-weight: 600!important;
84 font-size: 17px!important;
85 margin: 0 auto;
86}
87.post-img {
88 height: auto;
89 overflow: hidden;
90 max-height: 160px;
91}
92
93.adtnoticias .post-slide10{padding-bottom:10px;margin:0 15px;position:relative;background:#1d1d1d;margin-bottom:2em}
94.adtnoticias .owl-buttons{margin-top:2px;position:relative}
95.adtnoticias .owl-prev {position:absolute;left:-40px;bottom:18rem;padding:8px 17px; transition:background .5s ease}
96.adtnoticias .owl-prev span {
97 top: 14px;
98 left: 5px;
99 bottom: 0;
100 position: absolute;
101}
102.adtnoticias .owl-next {position:absolute;right:-40px;bottom:18rem;padding:8px 17px;transition:background .5s ease}
103.adtnoticias .owl-next span {
104 top: 12px;
105 right: 4px;
106 bottom: 0;
107 position: absolute;
108}
109.adtnoticias .owl-next:after,
110.adtnoticias .owl-prev:after{content:"\f053";font-family:FontAwesome;color:#1d1d1d;font-size:2.4rem;}
111.adtnoticias .owl-next:after{content:"\f054"}
112.adtnoticias .owl-next:hover,
113.adtnoticias .owl-prev:hover{/*background:#e74c3c*/}
114@media only screen and (max-width:990px){
115 .adtnoticias .post-slide10{margin:0 20px}
116 .adtnoticias .owl-prev {left:-20px;padding:5px 14px}
117 .adtnoticias .owl-next {right:-20px;padding:5px 14px}
118}
119@media only screen and (max-width:767px){
120 .adtnoticias .owl-prev {left:0;bottom:260px}
121 .adtnoticias .owl-next {right:0;bottom:260px}
122}
123.adtnoticias .owl-theme .owl-dots {
124 text-align: center;
125 -webkit-tap-highlight-color: transparent;
126}
127.adtnoticias .owl-theme .owl-dots .owl-dot.active span,
128.adtnoticias .owl-theme .owl-dots .owl-dot:hover span {
129 background: #aa2131;
130}
131.adtnoticias .owl-theme .owl-dots .owl-dot {
132 display: inline-block;
133 zoom: 1;
134}
135.adtnoticias .owl-theme .owl-dots .owl-dot span {
136 width: 12px;
137 height: 12px;
138 margin: 5px 7px;
139 background: #ccc;
140 display: block;
141 -webkit-backface-visibility: visible;
142 transition: opacity .2s ease;
143 border-radius: 30px;
144}
145</style>
146<#-- Truncate Text -->
147<#macro truncate_text text limit>
148
149 <#assign truncatedText = "" />
150
151 <#if text?length gt limit>
152
153 <#assign truncatedText = text?substring(0,limit)/>
154 <#assign truncatedText = truncatedText + "..."/>
155
156 ${truncatedText}
157
158 <#else>
159
160 ${text}
161
162 </#if>
163
164</#macro>
165
166<div class="container adtnoticias">
167 <h3 class="h3 uni-title__text--dark mb-4">Noticias</h3>
168 <div class="row">
169 <div class="col-md-12">
170 <div id="news-slider10" class="owl-carousel owl-theme">
171 <#if entries?has_content>
172
173 <#list entries as curEntry>
174
175 <#assign
176 renderer = curEntry.getAssetRenderer()
177 className = renderer.getClassName()
178 />
179
180 <#assign
181
182 slash="/"
183 constantDocuments="documents"
184 journalArticle = renderer.getArticle()
185 document = saxReaderUtil.read(journalArticle.getContent())
186 rootElement = document.getRootElement()
187
188 xPathSelector = saxReaderUtil.createXPath("dynamic-element[@name='tituloNoticia']")
189 news_title = xPathSelector.selectSingleNode(rootElement).getStringValue()
190
191 xPathSelector = saxReaderUtil.createXPath("dynamic-element[@name='imagenField']")
192 jsonImagenString = xPathSelector.selectSingleNode(rootElement).getStringValue()
193 jsonObjectImagen = jsonFactoryUtil.createJSONObject(jsonImagenString)
194
195 nombre_documento= jsonObjectImagen.getString('title')
196 groupIdDocumento = jsonObjectImagen.getString("groupId")
197 uuidDocumento = jsonObjectImagen.getString("uuid")
198 classPKDocumento = jsonObjectImagen.getString("classPK")
199 imagen= slash+constantDocuments+slash+groupIdDocumento+slash+classPKDocumento+slash+nombre_documento+slash+uuidDocumento
200
201 />
202
203 <#assign viewURL = "/web/grupo-prensa/noticia?articleId=${journalArticle.getArticleId()}&groupId=${journalArticle.getGroupId()}" >
204
205 <div class="post-slide10">
206 <div class="post-img">
207 <img class="image_uninorte" src="${imagen}" alt="...">
208 </div>
209
210 <div class="card-body body_card_uninorte uni-card--grey">
211 <h4 class="uni-card__title">
212 <a href="${viewURL}" class="uni-card-link">
213 <#assign title = news_title />
214 <@truncate_text text=title limit=100 />
215 </a>
216 </h4>
217
218 <span class="uni-card__date">
219 ${curEntry.getPublishDate()?string("dd/MM/yy")}
220 </span>
221 <div class="uni-card-description mb-5">
222 ${stringUtil.shorten(curEntry.getSummary(locale), 300)}
223 </div>
224 <div class="uni-card__footer--align-right mb-2">
225 <a href="${viewURL}" class="continuar-noticias uni-link--with-icon">Continuar leyendo<span class="icon-right fa fa-angle-right" aria-hidden="true"></span>
226 </a>
227 </div>
228 </div>
229
230 </div>
231
232 </#list>
233
234 </#if>
235
236 </div>
237 </div>
238 </div>
239 <div class="row">
240 <a class="ver-mas-noticias btn btn-outline-dark mt-2" href="https://www.uninorte.edu.co/web/grupo-prensa">Ver más noticias</a>
241 </div>
242</div>
243<script type="text/javascript" src="https://owlcarousel2.github.io/OwlCarousel2/assets/owlcarousel/owl.carousel.js"></script>
244<script type="text/javascript">
245$('#news-slider10').owlCarousel({
246 loop:true,
247 margin:10,
248 dots: true,
249 responsiveClass:true,
250 responsive:{
251 0:{
252 items:1,
253 nav:true,
254 dots: false
255 },
256 768:{
257 items:3,
258 nav:true,
259 dots: true
260 },
261 1280:{
262 items:3,
263 nav:true,
264 dots: true,
265 loop:false
266 }
267 }
268})
269</script>