Inici - test
Carrusel
an-error-occurred-while-processing-the-template
No such key: decodeURL in class com.liferay.portal.kernel.util.HttpUtil ---- FTL stack trace ("~" means nesting-related): - Failed at: #assign cookieMunicipalityIneValue = ... [in template "20116#20152#21730823" at line 14, column 1] ----
1<#assign LayoutLocalService = serviceLocator.findService("com.liferay.portal.kernel.service.LayoutLocalService")>
2<#assign GroupLocalService = serviceLocator.findService("com.liferay.portal.kernel.service.GroupLocalService")>
3
4<#assign CookieKeys = staticUtil["com.liferay.portal.kernel.util.CookieKeys"]>
5<#assign PortalUtil = staticUtil["com.liferay.portal.kernel.util.PortalUtil"]>
6<#assign HttpUtil = staticUtil["com.liferay.portal.kernel.util.HttpUtil"]>
7
8<#assign currentGroupId = themeDisplay.getScopeGroupId()>
9
10<#assign cookieMunicipalityIneKey = "LR_MUNICIPIO_CODINE_" + currentGroupId>
11<#assign cookieMunicipalityNameKey = "LR_MUNICIPIO_NOMBRE_" + currentGroupId>
12<#assign cookieMunicipalityProvinceKey = "LR_MUNICIPIO_PROVINCIA_" + currentGroupId>
13
14<#assign cookieMunicipalityIneValue = HttpUtil.decodeURL(CookieKeys.getCookie(request, cookieMunicipalityIneKey))!"">
15<#assign cookieMunicipalityNameValue = HttpUtil.decodeURL(CookieKeys.getCookie(request, cookieMunicipalityNameKey))!"">
16<#assign cookieMunicipalityProvinceValue = HttpUtil.decodeURL(CookieKeys.getCookie(request, cookieMunicipalityProvinceKey))!"">
17
18<#function escapeId text>
19 <#assign id = text?replace('^[^a-z]', '', 'ri')>
20 <#assign id = id?replace('[^a-z|0-9|_]', '-', 'ri')>
21 <#return id>
22</#function>
23
24<div id="home-selector">
25 <div class="container formularios">
26 <header>
27 <#if themeDisplay.getLanguageId()== "es_ES">
28 <h2 class="">Qué tengo que hacer si …</h2>
29 <#elseif themeDisplay.getLanguageId()== "en_US">
30 <h2 class="">What should I do if …</h2>
31 <#elseif themeDisplay.getLanguageId()== "ca_ES">
32 <h2 class="">Què he de fer si …</h2>
33 <#elseif themeDisplay.getLanguageId()== "va_ES">
34 <h2 class="">Què he de fer si …</h2>
35 <#elseif themeDisplay.getLanguageId()== "gl_ES">
36 <h2 class="">Que teño que facer se …</h2>
37 <#elseif themeDisplay.getLanguageId()== "eu_ES">
38 <h2 class="">Zer egin behar dut baldin eta …</h2>
39 </#if>
40 </header>
41 <div class="row">
42 <div class="col-sm-8 col-sm-offset-2">
43 <div class="form-group required" >
44 <select title="Pulse intro para desplegar y seleccione una pregunta con flechas del cursor" aria-label="<@liferay.language key='aqualogy.liferay.faq.home.intro.text' />" onchange="if (this.value) window.location.href=this.value" class="form-control" id="selector-home">
45
46 <option>...</option>
47 <#if entries?has_content>
48 <#list entries as curEntry>
49 <#assign pathFriendlyUrl = ""/>
50 <#assign groupFriendlyUrl = ""/>
51 <#assign pageURL = ""/>
52 <#assign assetRenderer = curEntry.getAssetRenderer()
53 ddmFormValuesReader = assetRenderer.getDDMFormValuesReader()
54 textFields = ddmFormValuesReader.getDDMFormFieldValues('text')
55>
56 <#assign fields = curEntry.getAssetRenderer().getDDMFormValuesReader().getDDMFormValues().getDDMFormFieldValues()/>
57 <#assign last = fields?size?number />
58 <#assign Multimunicipio = fields[0].getValue().getString(locale) />
59
60 <#list textFields as textField>
61 <#if textField.name == 'enlaceHome' && textField.getValue().getString(locale)?? && textField.getValue().getString(locale) != "" >
62 <#assign pathFriendlyUrl = textField.getValue().getString(locale)/>
63 </#if>
64 <#if textField.name == 'Pregunta'>
65 <#assign cur_Pregunta = textField />
66 <#list cur_Pregunta.getNestedDDMFormFieldValues() as nestedField>
67 <#if nestedField.name == 'EnlazarEnHome'>
68 <#assign printLink = nestedField.getValue().getString(locale)>
69 <#if printLink == "true">
70 <#list nestedField.getNestedDDMFormFieldValues() as othernestedField>
71 <#if othernestedField.name == 'TextoHome'>
72 <#assign linkText = othernestedField.getValue().getString(locale)>
73 <#if linkText != "">
74 <#if cookieMunicipalityNameValue == "" >
75 <#if Multimunicipio != '["Si"]'>
76 <option value="${pathFriendlyUrl}#${escapeId(cur_Pregunta.getValue().getString(locale))}">${linkText}</option>
77 </#if>
78 <#else>
79 <#if Multimunicipio != '["Generico"]'>
80 <option value="${pathFriendlyUrl}#${escapeId(cur_Pregunta.getValue().getString(locale))}">${linkText}</option>
81 </#if>
82 </#if>
83 </#if>
84 </#if>
85 </#list>
86 </#if>
87 </#if>
88 </#list>
89 </#if>
90 </#list>
91 </#list>
92 </#if>
93 </select>
94 <span class="glyphicon glyphicon-menu-down" style="display:none; bottom:15px; right:15px;"></span>
95 <label for="selector-home" >Selector</label>
96 </div>
97 </div>
98 </div>
99</div>