Actualidad y noticias Canal de Isabel II


NEWS

An error occurred while processing the template.
The following has evaluated to null or missing:
==> m.groupId  [in template "20116#20152#43879" at line 49, column 70]

----
Tip: It's the step after the last dot that caused this error, not those before it.
----
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: #assign groupId = m.groupId?number  [in template "20116#20152#43879" at line 49, column 51]
----
1<div class="container-fluid-1280">  
2    <div class="row actualidad-wrapper">   
3        <div class="d-block d-md-none buscador-1"> 
4            <div class="col-md-6 block-notices">   
5                <div class="buscador-noticias">      
6                    <div class="clearfix"></div>  
7                    <div class="text-blue btnIrBuscadorNoticias" id="btnIrBuscadorNoticias" > 
8                        <i class="ico-search-secundary nav-item"></i> 
9                            Buscador de noticias 
10                    </div>   
11                    <div class="input-group form-custom fadeInDown animated " style="margin-top:25px;"> 
12                        <input class="form-control" id="txtBuscarNoticias" onkeypress="return runScript(event)" placeholder="Escribe lo que quieres buscar..." type="text" /> 
13                        <span class="input-group-btn"> 
14                            <input class="btn btn-default btnBuscarPublicaciones" id="btnBuscarNoticias" type="button" type="submit" value="Buscar">  
15                        </span> 
16                    </div>  
17                </div>   
18            </div>   
19        </div> 
20        <#if entries?has_content>     
21            <#assign cont=0 >    
22			<#assign portletfilerepository = staticUtil["com.liferay.portal.kernel.portletfilerepository.PortletFileRepositoryUtil"] /> 
23			<#assign xPathImagenSelector = saxReaderUtil.createXPath("//dynamic-element[@field-reference='imagenFieldSet']/dynamic-content/text()") /> 
24                <#list entries as curEntry>    
25                    <#assign assetRenderer = curEntry.getAssetRenderer()>      
26                    <#assign viewURL = assetPublisherHelper.getAssetViewURL(renderRequest,renderResponse,curEntry)>     
27                    <#assign viewURL = viewURL?replace("actualidad","detalles-noticia")>      
28                    <#assign viewURL = viewURL?replace("buscador-avanzado","detalles-noticia")>     
29                    <#assign viewURL += '?redirect=%2Fes%2Fweb%2Fsite'>     
30                    <#assign comienzo = viewURL?index_of("detalles-noticia")>   
31                    <#assign final = viewURL?index_of("content")>    
32                    <#assign final = final+6>    
33                    <#assign cambio = viewURL[comienzo..final]>    
34                     
35                    <#assign viewURL = viewURL?replace(cambio,"-")>   
36                     
37                    <#assign docXml = saxReaderUtil.read(assetRenderer.getArticle().getContentByLocale(locale)) />   
38                    <#assign contenido = docXml.valueOf("//dynamic-element[@name='contenido']/dynamic-content/text()") />    
39                    <#assign subtitulo = docXml.valueOf("//dynamic-element[@name='subtitulo']/dynamic-content/text()") />       
40                    <#assign fecha = docXml.valueOf("//dynamic-element[@name='fecha']/dynamic-content/text()") />    
41                    <#assign formatoTexto = docXml.valueOf("//dynamic-element[@name='formatoTexto']/dynamic-content/text()") />  
42                    <#assign formatoFoto = docXml.valueOf("//dynamic-element[@name='formatoFoto']/dynamic-content/text()") />  
43                    <#assign formatoVideo = docXml.valueOf("//dynamic-element[@name='formatoVideo']/dynamic-content/text()") />  
44                    <#assign formatoAudio = docXml.valueOf("//dynamic-element[@name='formatoAudio']/dynamic-content/text()") />   
45										<#assign formatoAudio = docXml.valueOf("//dynamic-element[@name='formatoAudio']/dynamic-content/text()") />   
46										<#assign imagen = docXml.valueOf("//dynamic-element[@name='imagenFieldSet']") />   
47										<#assign jsonImagen = jsonFactoryUtil.createJSONObject(imagen) /> 
48                    <#assign m = jsonImagen?eval />	 
49					          <#assign groupId = m.groupId?number /> 
50					          <#assign uuid = m.uuid /> 
51					          <#assign fileEntry = portletfilerepository.getPortletFileEntry(uuid, groupId) /> 
52					          <#assign contenido = docXml.valueOf("//dynamic-element[@name='contenido']/dynamic-content/text()") />   
53					          <#assign imagenURL = portletfilerepository.getPortletFileEntryURL(themeDisplay, fileEntry, "") /> 
54 
55 
56 
57 
58 
59 
60    						    
61										 
62		 
63												<#assign contenido = docXml.valueOf("//dynamic-element[@name='contenido']/dynamic-content/text()") />   
64										 
65 
66                         
67                            <#if cont == 1>  
68                            <div class="hidden-xs buscador-2 col-md-6"> 
69                                <div class="col-md-12 block-notices">   
70                                    <div class="buscador-noticias <#if cont = 0>hidden-md hidden</#if><#if cont = 3>hidden-xs hidden-sm</#if>">      
71                                        <div class="clearfix"></div>  
72                                        
73                                       <div class="text-blue btnIrBuscadorNoticias" id="btnIrBuscadorNoticiasDesktop" > 
74                                           <i class="ico-search-secundary nav-item"></i> 
75                                                <#if (locale == "en_US")> 
76                                                News search engine  
77                                                <#else> 
78                                                Buscador de noticias 
79                                                </#if> 
80                                                 
81                                        </div>   
82                                         
83                                         
84                                        <#if (locale == "en_US")> 
85                                            <#assign placeholderBus = "Write what you want to search...">  
86                                        <#else> 
87                                            <#assign placeholderBus = "Escribe lo que quieres buscar...">  
88                                        </#if> 
89                                        
90                                           
91                                         
92                                       <div class="input-group form-custom fadeInDown animated display" style="margin-top:25px;"> 
93  <input class="form-control form-control-reply" id="txtBuscarNoticiasDesktop" onkeypress="return runScript(event)" placeholder="Escribe lo que quieres buscar..." type="text"> 
94  <span class="input-group-btn position-relative"> 
95    <i class="ico-search-secundary ico-search-copy" onclick="busquedaScript(event);"></i> 
96      <input class="btn btn-default btnBuscarPublicaciones" id="btnBuscarNoticiasDesktop" type="button" value="Buscar">  
97  </span> 
98</div> 
99                                    </div>   
100                                </div>   
101                            </div> 
102                            </#if>  
103                         
104 
105                        <div class="col-md-6 block-notices">     
106                            <div class="notice" data-texto='${formatoTexto}' data-foto='${formatoFoto}' data-video='${formatoVideo}' data-audio='${formatoAudio}' data-fecha='${fecha}'>   
107                                <#if imagenURL!=""> 
108                                    <img alt="Imagen" class="image-notice" src="${imagenURL}" /> 
109                                </#if>         
110                                <hr>   
111                                <#assign link = assetRenderer.getURLViewInContext(renderRequest, renderResponse, '')> 
112                                <a href="${link}"> 
113                                    <h3 class="animation title-notice"> 
114                                        ${curEntry.getTitle(locale)} 
115                                    </h3> 
116                                </a>          
117                                <div class="content-notice">      
118                                    ${subtitulo}      
119                                </div>           
120                                <#assign dateFormat = "dd/MM/yyyy">      
121                                    <div class="col-xs-6 date-notice" style="padding:0px 0px;">    
122                                        ${fecha}         
123                                    </div>  
124                                    <div class="col-xs-6 social-notice floatRight" style="padding:0px 0px;">       
125                                        <a class="text-greenblue" href="https://www.linkedin.com/shareArticle?mini=true&amp;url=${viewURL}&amp;title=${curEntry.getTitle(locale)}&amp;summary=&amp;source=" target="_blank" rel="noopener nore-ferrer"><i class="fa fa-linkedin"></i></a> 
126                                        <a class="text-greenblue" href="https://twitter.com/intent/tweet?text=${curEntry.getTitle(locale)}&amp;url=${viewURL}" target="_blank" rel="noopener nore-ferrer"><i class="fa fa-twitter"></i></a>      
127                                        <a class="text-greenblue" href="https://www.facebook.com/sharer/sharer.php?u=${viewURL}" target="_blank" rel="noopener nore-ferrer"><i class="fa fa-facebook"></i></a>      
128                                    </div>           
129                            </div>    
130                        </div>    
131                    <#assign cont = cont + 1 >   
132                </#list>  
133        </#if>  
134    </div>  
135</div>     
136<script> 
137    var URLactual = window.location; 
138    function busquedaScript(e){ 
139            
140            var texto = $("#txtBuscarNoticiasDesktop").val(); 
141             
142                location.href="buscador-avanzado?texto="+texto; 
143               
144                    
145        }           
146 
147    function runScript(e) { 
148        if (e.keyCode == 13) { 
149            busquedaScript(e); 
150
151
152</script> 

Contact our Communication Department