Noticias de actualidad

Noticias de actualidad

Esta página contiene un listado de noticias y publicaciones de Canal de Isabel II y otros temas de interés relacionados, ordenados cronológicamente, pinche en el enlace de cada noticia para visualizarla.

 

Publicador de Conteúdos e Mídias

Um erro ocorreu enquanto processava o modelo.
The following has evaluated to null or missing:
==> page_link?split("https://")[1]  [in template "818159#818205#826283" at line 47, column 42]

----
Tip: It's the final [] step that caused this error, not those before it.
----
Tip: If the failing expression is known to be 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: #assign page_link_no_http = page_link...  [in template "818159#818205#826283" at line 47, column 13]
----
1<#-- 
2Application display templates can be used to modify the look of a 
3specific application. 
4 
5Please use the left panel to quickly add commonly used variables. 
6Autocomplete is also available and can be invoked by typing "${". 
7--> 
8 
9<#-- Selectores XML Contenido Miembro Consejo Admin --> 
10<#assign xPathTituloSelector = saxReaderUtil.createXPath("dynamic-element[@name='titulo']/dynamic-content[@language-id='" + locale + "']") /> 
11<#assign xPathImagenSelector = saxReaderUtil.createXPath("dynamic-element[@name='imagen']/dynamic-content[@language-id='" + locale + "']") /> 
12<#assign xPathResumenSelector = saxReaderUtil.createXPath("dynamic-element[@name='resumen']/dynamic-content[@language-id='" + locale + "']") /> 
13<div class="container"> 
14 
15 
16<#if entries?has_content> 
17	<#list entries as curEntry> 
18		<#assign renderer = curEntry.getAssetRenderer() /> 
19		<#assign className = renderer.getClassName() /> 
20		<#if className == "com.liferay.journal.model.JournalArticle"> 
21		    <#assign journalArticle = renderer.getArticle() /> 
22		    <#assign document = saxReaderUtil.read(journalArticle.getContent()) /> 
23		    <#assign rootElement = document.getRootElement() /> 
24		     
25			<#assign displayDate = journalArticle.getDisplayDate() /> 
26			 
27		    <#if xPathTituloSelector.selectSingleNode(rootElement)??> 
28		        <#assign titulo = xPathTituloSelector.selectSingleNode(rootElement).getStringValue() /> 
29		    <#else> 
30		        <#assign titulo = "" /> 
31		    </#if> 
32		    <#if xPathImagenSelector.selectSingleNode(rootElement)??> 
33		        <#assign imagen = xPathImagenSelector.selectSingleNode(rootElement).getStringValue() /> 
34		    <#else> 
35		        <#assign imagen = "" /> 
36		    </#if> 
37		    <#if xPathResumenSelector.selectSingleNode(rootElement)??> 
38		        <#assign resumen = xPathResumenSelector.selectSingleNode(rootElement).getStringValue() /> 
39		    <#else> 
40		        <#assign resumen = "" /> 
41		    </#if> 
42                 
43		    <#assign assetRenderer = curEntry.getAssetRenderer() /> 
44            <#assign viewURL = assetPublisherHelper.getAssetViewURL(renderRequest, renderResponse, curEntry) /> 
45            <#-- Descomponemos la url para poder pintar el detalle maximizado y volver al listado --> 
46            <#assign page_link = viewURL?split("/-/")[0] /> 
47            <#assign page_link_no_http = page_link?split("https://")[1] /> 
48            <#assign inte = page_link_no_http?index_of("/") /> 
49            <#assign page_link_relative = page_link_no_http?substring(inte, page_link_no_http?length) /> 
50 
51            <#assign friendly_page_link = assetRenderer.getURLViewInContext(renderRequest, renderResponse, viewURL) /> 
52              
53		    <div class="row"> 
54				 
55					<div class="col-xs-12 col-sm-2"> 
56						<img src=${imagen} alt="" class="img-responsive"/> 
57					</div> 
58					<div class="col-xs-12 col-sm-10"> 
59					<div class="small"> 
60					    ${dateUtil.getDate(displayDate, "dd/MM/yy", locale)}	 
61					</div> 
62					<div> 
63						<strong>${titulo}</strong> 
64					</div> 
65					<div> 
66					<p><a href="${friendly_page_link + '?inheritRedirect=true&redirect=' + page_link_relative}">	${resumen}	</a></p> 
67					</div> 
68					</div> 
69			 
70		    </div> 
71		    <div class="separator"><!-- --></div> 
72		</#if> 
73	</#list> 
74</#if> 
75 
76  </div>