BLOG

angle-left El ‘boom’ de la bicicleta se consolida y el sector vive su mejor momento
S'ha produït un error mentre es processava la plantilla.
For "." left-hand operand: Expected a hash, but this has evaluated to a string (wrapper: f.t.SimpleScalar):
==> multimediaTipo.data  [in template "20155#20195#BLOG_DETALLE" at line 54, column 42]

----
FTL stack trace ("~" means nesting-related):
	- Failed at: #elseif multimediaTipo.data.equals("d...  [in template "20155#20195#BLOG_DETALLE" at line 54, column 33]
----
1<style> 
2.finconsum .header-back-to, .finconsum .header-title { 
3    display: none; 
4
5</style> 
6<#-- Comprobamos si el usuario accede desde el portal o desde una página externa--> 
7<script> 
8$( document ).ready(function() { 
9	var previousUrl = document.referrer.toString(); 
10	if (previousUrl.indexOf("filfin") > 0){ 
11		$("#previous-page a")[0].setAttribute("href", previousUrl); 
12	} else { 
13		$("#previous-page a")[0].setAttribute("href", "/blog"); 
14
15}); 
16</script> 
17 
18<script src="/o/filfin-dxp-theme/js/jquery.sharrre.min.js"></script> 
19 
20<#assign journalLocalService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService")/> 
21<#assign article = journalLocalService.getArticle(groupId, .vars['reserved-article-id'].data)/> 
22<#assign articlePrimKey = article.resourcePrimKey/> 
23<#assign catLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetCategoryLocalService")/> 
24<#assign articleCatNames = catLocalService.getCategoryNames("com.liferay.journal.model.JournalArticle", getterUtil.getLong(articlePrimKey))/> 
25<#assign articleCatIds = catLocalService.getCategoryIds("com.liferay.journal.model.JournalArticle", getterUtil.getLong(articlePrimKey))/> 
26<#assign catProperties = serviceLocator.findService("com.liferay.asset.kernel.service.AssetCategoryPropertyLocalService")/> 
27<#assign assetLinkLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetLinkLocalService")/> 
28<#assign assetEntryLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetEntryLocalService")/> 
29 
30<#--Size para la ventana de twitter--> 
31<#assign widthTweet = 600/> 
32<#assign heightTweet = 300/> 
33 
34<div class="list-blog-article container own-container"> 
35	<article class="col-xs-12 col-sm-12 col-md-7 col-lg-7 nopadding"> 
36		<section class="section-blog data-title"> 
37			<h2><@liferay.language key="filfin-blog-title-detail-section"/></h2> 
38			<h1>${titulo.getData()}</h1> 
39			<div class="contentimage"> 
40				<#if multimediaTipo.data == "documento-portal"> 
41					<#if recursoMultimedia.tipoContenido.getData() == '["0"]'> 
42					## ATENCION ESTO NO ESTA CONTEMPLADO EN LA MAQUETA 
43						<div class="content-video"> 
44							<video ng-src="${recursoMultimedia.getData()}" src="${recursoMultimedia.getData()}"></video> 
45							<a class="video-icon icon-ic_play_video_white"></a> 
46						</div> 
47					<#else> 
48						 <#if validator.isNotNull(recursoMultimedia.alt.getData())> 
49							<img alt="${recursoMultimedia.alt.getData()}" title="${titulo.getData()}" src="${recursoMultimedia.getData()}" ng-src="${recursoMultimedia.getData()}"/> 
50						 <#else> 
51							<img alt="${titulo.getData()}" title="${titulo.getData()}" src="${recursoMultimedia.getData()}" ng-src="${recursoMultimedia.getData()}"/> 
52						 </#if> 
53					</#if>   
54				<#elseif multimediaTipo.data.equals("documento-video-youtube")> 
55					<div class="content-video video-custom-height"> 
56						<iframe id="hgVideo" width="100%" height="100%" src="${enlaceVideoExterno.getData()}" frameborder="0" allowfullscreen></iframe> 
57					</div> 
58				<#elseif multimediaTipo.data.equals("documento-video-brightcove")> 
59					<div class="content-video video-custom-height"> 
60						<#assign brightcoveID = propsUtil.get("filfin.brightcove.accountID")/> 
61						<#assign playerID = propsUtil.get("filfin.brightcove.playerID")/> 
62						<iframe src="//players.brightcove.net/${brightcoveID}/${playerID}/index.html?videoId=${enlaceVideoExterno.getData()}" 
63                          allowfullscreen 
64                          frameborder="0" 
65                          webkitallowfullscreen 
66                          mozallowfullscreen width="100%" height="100%"></iframe> 
67					</div> 
68				</#if> 
69			</div> 
70			<p>${cuerpo.getData()}</p> 
71			<div class="backurl hidden-xs hidden-sm visible-md visible-lg" id="previous-page">  
72				<a href=""><i class="icon-ic_arrowleft_blue"></i>&nbsp; <@liferay.language key="filfin-back"/></a> 
73			</div> 
74		</section>	   	 
75	</article> 
76	 
77	<#setting time_zone="Europe/Brussels"/> 
78	<#setting locale="es_ES"/> 
79	<#setting datetime_format="EEE, dd MMM yyyy hh:mm:ss Z"> 
80	<#setting date_format="dd/MM/yyyy"> 
81	<#assign fecha = .vars['reserved-article-modified-date'].data?datetime />	            	 
82	 
83	<aside class="col-xs-12 col-sm-12 col-md-5 col-lg-5 asidesec"> 
84		<section class="list-social"> 
85			<h2>	 
86			    <@liferay.language key="filfin-blog-publish"/> ${fecha?date} 
87				<#if articleCatNames?? && articleCatNames?first?? && articleCatIds?? && articleCatIds?first??> 
88				    <@liferay.language key="filfin-blog-en"/> 
89				    <#assign catIdUrl = articleCatIds?first/> 
90				    <#assign URL = catProperties.getCategoryProperty(catIdUrl,"URL")/> 
91				    <#assign icono = catProperties.getCategoryProperty(catIdUrl,"icono")/> 
92				    <div class="category-icon-wrapper"> 
93						<span class="category-icon"> 
94			    			<img src="/o/filfin-dxp-theme/images/svg/${icono.getValue()}" alt="${articleCatNames?first}"> 
95			    		</span> 
96						<span class="social-name">${articleCatNames?first}</span>	 
97					</div> 
98				</#if> 
99			</h2> 
100		</section>	   	 
101	</aside> 
102 
103	<#assign currentArticleAssetEntry = assetEntryLocalService.getEntry("com.liferay.journal.model.JournalArticle", articlePrimKey)/> 
104	<#assign currentArticleAssetEntryEntryId = currentArticleAssetEntry.getEntryId()/> 
105	<#assign currentArticleRelatedLinks = assetLinkLocalService.getDirectLinks(currentArticleAssetEntryEntryId)/> 
106	 
107	<#if currentArticleRelatedLinks?has_content> 
108		<div class="col-xs-12 col-sm-12 col-md-7 col-lg-7 nopadding clearfix"> 
109			<section class="list-item-related"> 
110		        <h2><@liferay.language key="filfin-blog-te-puede-interesar"/></h2> 
111		        <ul> 
112			        <#list currentArticleRelatedLinks as link> 
113				       	<#assign linkedAssetEntryId = link.getEntryId2()/> 
114				       	<#assign linkedAssetEntry = assetEntryLocalService.getEntry(linkedAssetEntryId)/> 
115				       	<#assign linkedAssetEntryPrimaryKey = linkedAssetEntry.getClassPK()/> 
116				       	<#assign linkedArticle = journalLocalService.getLatestArticle(linkedAssetEntryPrimaryKey)/> 
117				       	<li> 
118							<a href="/-/${linkedArticle.getUrlTitle()}"><span>${linkedArticle.getTitle($locale)}</span></a> 
119				        </li> 
120			        </#list> 
121		        </ul> 
122			</section>           
123		</div> 
124	</#if> 
125</div> 
126 
127<script> 
128	<!--Twiter--> 
129	$("#twitter-trigger").click( 
130	    function tweetNewWindow(){ 
131	        var twitterURL = $(this).attr("data-url"); 
132	        url = encodeURI(twitterURL); 
133		    var width = $widthTweet; 
134		    var height = $heightTweet; 
135		    window.open(url,'popup','toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width='+width+',height='+height); 
136		    return false; 
137	}); 
138	 
139	$('#fb-trigger').sharrre({ 
140	  share: { 
141	    facebook: true 
142	  }, 
143	  template:'<a class="count" href="#"><span class="icon-ic_facebook_color own-icon own-facebook"></span><span class="comment-count">{total}</span></a>', 
144	  enableHover: false, 
145	  enableTracking: true, 
146	  click: function(api, options){ 
147	    api.simulateClick(); 
148	    api.openPopup('facebook'); 
149
150	}); 
151	$('#google-trigger').sharrre({ 
152	  share: { 
153	    googlePlus: true 
154	  }, 
155	  template:'<a class="count" href="#"><span class="icon-ic_google_color own-icon own-googleplus"></span><span class="comment-count">{total}</span></a>', 
156	  urlCurl:'$propsUtil.get("filfin.portal.url")/o/filfin-dxp-theme/js/sharrre.php', 
157	  enableHover: false, 
158	  enableTracking: true, 
159	  click: function(api, options){ 
160	    api.simulateClick(); 
161	    api.openPopup('googlePlus'); 
162
163	}); 
164</script> 

Descarrega la nostra App