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):
==> template.getName(locale.toString())  [in template "10154#10192#40444663" at line 33, column 82]

----
FTL stack trace ("~" means nesting-related):
	- Failed at: #if template.getName(locale)?has_cont...  [in template "10154#10192#40444663" at line 33, column 37]
----
1<#-- get services --> 
2<#assign journalArticleLocalService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService") /> 
3<#assign LiteralsToolsServiceUtil = serviceLocator.findService("com.aqua.literals.util.LiteralsToolsService")/> 
4<#assign language = themeDisplay.getLocale()/> 
5<#assign groupId = themeDisplay.getScopeGroupId()/> 
6 
7<#if entries?has_content> 	 
8	<#assign cardCentro = ""/> 
9	<#assign DDMStructureLocalServiceUtil = objectUtil("com.liferay.dynamic.data.mapping.service.DDMStructureLocalServiceUtil") /> 
10	 
11	<div class="container news"> 
12    	<h1 class="width-60pc width-100pc-resp-s"> 
13    		${LiteralsToolsServiceUtil.getLiteral(groupId, language, "com.educaixa.landing.centro.titulo")} 
14		</h1> 
15    	<div class="row"> 
16			<#list entries as curEntry> 
17	            <#assign renderer = curEntry.getAssetRenderer()> 
18	            <#assign className = renderer.getClassName()> 
19	            <#if className == "com.liferay.journal.model.JournalArticle"> 
20	                <#assign journalArticle = renderer.getArticle() /> 
21	                <#assign xml = journalArticle.getContentByLocale(locale.toString()) /> 
22	                 
23	                <#-- Takes the structureId --> 
24	                <#assign ClassNameLocalServiceUtil = objectUtil("com.liferay.portal.kernel.service.ClassNameLocalServiceUtil")/> 
25	                <#assign classNameId = ClassNameLocalServiceUtil.getClassNameId(className) /> 
26	                <#assign structures = journalArticle.getDDMStructure() /> 
27	    			<#assign structureId = DDMStructureLocalServiceUtil.getStructure(themeDisplay.getScopeGroupId(), classNameId, structures.structureKey).getStructureId() /> 
28	    			 
29	    		    <#-- For each template in this STR, take the ones that start with CARD --> 
30	                <#assign ddmStructure = DDMStructureLocalServiceUtil.fetchDDMStructure(structureId)/> 
31	    		    <#if ddmStructure?has_content> 
32	    		        <#list ddmStructure.getTemplates() as template> 
33	    		            <#if template.getName(locale)?has_content && template.getName(locale.toString()).startsWith('CARD')> 
34        		                <#assign templateId = template.getTemplateKey()/> 
35    		                	<#-- Displays the content with the corrent TPL --> 
36    		                	<#assign articleContent = journalArticleLocalService.getArticleContent(journalArticle, templateId, "VIEW", themeDisplay.getLocale(), themeDisplay) />  
37                                ${articleContent} 
38	    		            </#if> 
39	                    </#list> 
40			        </#if> 
41				<#else> 
42	            </#if> 
43		    </#list> 
44    	</div> 
45	</div> 
46</#if> 
47 
48<style>		 
49.educaixa{ 
50	color:#009DDF; 
51
52 
53.center-wrapper .center-title{ 
54	font-size: 28pX; 
55	line-height: 34px; 
56	color: #000000; 
57	font-weight: 900; 
58
59 
60.center-wrapper .center-border { 
61	display: flex; 
62	padding: 12px 0 0 0; 
63	border-top: 1px solid #000; 
64	justify-content: space-between; 
65
66 
67.button.secondary { 
68	padding: 12px; 
69	background-color: #fff !important; 
70	color: #009DDF !important; 
71	border: 1px solid #009DDF; 
72	width: 150px; 
73	border-radius:30px; 
74	padding-right:40px; 
75
76 
77.center-wrapper .center-border .center-actions { 
78	display: flex; 
79	align-items: center; 
80
81 
82.center-wrapper .button{ 
83	padding: 6px 12px; 
84
85 
86button#share { 
87    padding-right:30px; 
88
89 
90.center-wrapper { 
91    padding: 0 0 50px 0; 
92
93</style>