caes

Parque Natural y Reserva de la Biosfera de El Montseny

Navegación

Se ha producido un error al procesar la plantilla.
The following has evaluated to null or missing:
==> subtitle_item.sub_text.sub_link.sub_link_url  [in template "10311#10344#MAIN_CONTENT_FULL" at line 137, column 22]

----
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: #if subtitle_item.sub_text.sub_link.s...  [in template "10311#10344#MAIN_CONTENT_FULL" at line 137, column 17]
----
1<#if subtitle.id_subtitle.getData()?has_content> 
2	<div id="${subtitle.id_subtitle.getData()}.toLowerCase()" class="article_content"> 
3<#else>    <div id="articulo" class="article_content"> 
4</#if> 
5	<section> 
6		<article> 
7			<#if top_title.getData()?has_content> 
8			  <h1 class="section_cab tam_h1">${top_title.getData()}</h1>   
9                          <hr class="line_xarxa_parcs_full">	  
10			</#if> 
11		 
12		<#list subtitle.getSiblings() as subtitle_item>	 
13			<#if subtitle_item.getData()?has_content> 
14					<h2 class="section_cab_full tam_h2">${subtitle_item.getData()}</h2> 
15						<hr class="line_xarxa_parcs_subtitle"> 
16			</#if>		    
17 
18			<#assign urlImgEntry="">	     	 
19			<#if subtitle_item.sub_text.sub_image.getData()?has_content > 
20                <#list subtitle_item.sub_text.sub_image.getSiblings() as imatge>              				 
21					 
22								   <#assign class_image= imatge.sub_image_position.getData()> 
23 
24					<#assign urlImgEntry= imatge.getData()> 
25					<#if !urlImgEntry?has_content ||  urlImgEntry?length ==0> 
26						<#assign urlImgEntry= imatge.urlExterna.getData()> 
27					</#if>  
28					<#if imatge.sub_image_title.getData()?has_content>  
29						<#assign altAuxImg= imatge.sub_image_title.getData()> 
30					</#if> 
31					<#if imatge.sub_image_author.getData()?has_content>  
32						<#assign altAuxImg= imatge.sub_image_author.getData()> 
33					</#if> 
34 
35					<div class="${class_image}">     
36						<#-------------------------------------------------------------------------UNIFICACION PLANTILLAS METAINFO IMATGES INI-------------------------------------------------------------------------> 
37 
38						<#if urlImgEntry?has_content> 
39 
40 
41							<#----------------------------METAINFO_IMG_GETINFO INI----------------------------> 
42							<#assign DLFileEntryUtil= serviceLocator.findService("com.liferay.document.library.kernel.service.DLFileEntryLocalService")>   
43 
44						<#assign uuIdImagen= staticUtil['com.liferay.portal.kernel.util.HttpComponentsUtil'].getParameter( urlImgEntry,"uuid",false)> 
45						<#if uuIdImagen?has_content> 
46 
47						  <#assign groupIdImagen= staticUtil['com.liferay.portal.kernel.util.HttpComponentsUtil'].getParameter( urlImgEntry,"groupId",false)> 
48 
49						  <#assign current= DLFileEntryUtil.fetchDLFileEntryByUuidAndGroupId( uuIdImagen, getterUtil.getLong( groupIdImagen))> 
50						<#else>	  <#-- URL imatge 6.1--> 
51						  <#assign url= urlImgEntry> 
52						  <#assign parts= stringUtil.split( url,"/")> 
53						  <#if parts?size gt 4>		 
54							<#assign group_id=getterUtil.getLong(parts[2])> 
55							<#assign folder_id= getterUtil.getLong( parts[3])> 
56							<#assign doc_name= staticUtil['com.liferay.portal.kernel.util.HttpComponentsUtil'].decodeURL( parts[4])> 
57 
58							<#assign current= DLFileEntryUtil.fetchFileEntryByFileName( group_id, folder_id, doc_name)> 
59						  </#if> 
60						</#if> 
61 
62							<#----------------------------METAINFO_IMG_GETINFO FIN----------------------------> 
63 
64							<#assign currentArticle="null">	 
65 
66							<#if current?has_content && (!altAuxImg?has_content || altAuxImg=="")>		 
67 
68								<#assign structureId="IMATGES"> 
69								<#assign templateId="IMATGES"> 
70 
71								<#----------------------------METAINFO_EXIST_CONTENT INI----------------------------> 
72								<#assign journalArticleLocalService= serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService")> 
73								<#assign dibaUtilService= serviceLocator.findService("cat.diba.portal.dibautil.service.DibaJournalArticleLocalService")> 
74 
75								<#assign status="approved"> 
76 
77								<#assign companyId= companyId> 
78								<#assign group_Id= scopeGroupId> 
79								<#assign title= current.getDescription()> 
80								<#if title==""> 
81									<#assign title= current.getTitle()> 
82								</#if> 
83								<#assign type="general"> 
84								<#assign isEmpty=true>		 
85 
86								<#assign idiomas= localeUtil.fromLanguageIds(["ca_ES","es_ES"])> 
87 
88								<#assign articles= dibaUtilService.searchContentsByNameStructure( getterUtil.getLong( companyId), getterUtil.getLong( group_Id), title, structureId,0,1)> 
89								 
90								 
91									<#if articles?has_content &&  articles?length gt 0> 
92										<img src="${urlImgEntry}" class="image_border" /> 
93										<#if altAuxImg?has_content>  
94											<p>${altAuxImg}</p>  
95										</#if> 
96									</#if> 
97 
98							<#else>			 
99								<img src="${urlImgEntry}" alt="${altAuxImg}" title="" /> 
100								<#if altAuxImg?has_content>  
101										<p>${altAuxImg}</p>  
102								</#if> 
103							</#if> 
104						</#if>   
105 
106						<#-------------------------------------------------------------------------UNIFICACION PLANTILLAS METAINFO IMATGES INI------------------------------------------------------------------------->					 
107 
108					</div> 
109				</#list> 
110			</#if> 
111 
112			<#if subtitle_item.sub_text.getData()?has_content>  
113		<p> 
114			${subtitle_item.sub_text.getData()} 
115		</p>			  
116			</#if> 
117		  
118		   <#if subtitle_item.sub_text.sub_document.getData()?has_content> 
119				<ul class="bullet_parcs">      
120					<#list subtitle_item.sub_text.sub_document.getSiblings() as item>	 
121						<#assign docURL= item.getData()> 
122						<#if !docURL?has_content ||  docURL?length ==0> 
123						   <#assign docURL= item.urlExterna2.getData()> 
124						</#if>  
125						<#if docURL?has_content &&  docURL?length gt 0>			 
126							<li> 
127							  <a href="${docURL}" target="_blank" title="${item.sub_document_alt.getData()}" 
128							    alt="${item.sub_document_alt.getData()}"> 
129								${item.sub_document_text.getData()} 
130							  </a> 
131						   </li>	 
132						</#if>			 
133					</#list> 
134				</ul> 
135			</#if> 
136 
137		<#if subtitle_item.sub_text.sub_link.sub_link_url.getData()?has_content> 
138			<ul class="bullet_parcs">      
139			<#list subtitle_item.sub_text.sub_link.getSiblings() as item> 
140				<#if item.sub_link_url.getData()?has_content> 
141					 <li> 
142						  <a href="${item.sub_link_url.getData()}" alt="${item.sub_link_alt.getData()}"  
143						  title="${item.sub_link_alt.getData()}"  
144						  target="${item.sub_link_type.getData()}" > 
145						   ${item.sub_link_text.getData()} 
146						  </a> 
147					 </li>      
148				 </#if> 
149			</#list> 
150			</ul> 
151		</#if> 
152	</#list> 
153                <#if anchor_name?? && anchor_name.getData()?has_content> 
154                   <ul class="bullet_parcs"> 
155                        <#list anchor_name.getSiblings() as item> 
156                             <li><a href="#${item.anchor_url.getData()}">${item.getData()}</a></li> 
157                        </#list> 
158                   </ul> 
159                </#if>				 
160		</article> 
161	</section> 
162</div>