Portal Función Pública
Se ha producido un error al procesar la plantilla.
The following has evaluated to null or missing: ==> mesesHash[renderer.getDisplayDate()?string["MMMM"]] [in template "418512#418548#28600940" at line 28, column 32] ---- Tip: It's the final [] step that caused this error, not those before it. ---- Tip: If the failing expression is known to be 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 mes = mesesHash[renderer.getD... [in template "418512#418548#28600940" at line 28, column 17] ----
1<div class="contenedor " id="preguntas_frecuentes">
2 <div class="col-md-12 col-sm-12" id="titulo_preguntas">
3 <div class="icono">
4 <img src="${themeDisplay.getPathThemeImages()}/iconos/preguntas.png" />
5 </div>
6 <h1>Preguntas Frecuentes</h1>
7 </div>
8<#-- <div class="col-md-offset-2 col-sm-offset-2 col-md-8 col-sm-8" id="buscador_preguntas">
9 <div class="buscador">
10 <span class="form-control"><input class="formulario-busqueda" id="busqueda" name="busqueda" placeholder="Ingresa tu consulta" type="text" /> <img src="/documents/418537/0/icono-buscar.png/37daa0b8-cbc7-41ab-7123-a9b7956b443a?t=1513370205881" onclick="buscar();" /> </span>
11 </div>
12 </div> -->
13
14 <#assign mesesHash={"January":"Enero","February":"Febrero","March":"Marzo","April":"Abril","May":"Mayo","June":"Junio","July":"Julio","August":"Agosto","September":"Septiembre","October":"Octubre","November":"Noviembre","December":"Diciembre"}>
15
16 <div class="col-md-12 col-sm-12" id="contenedor_preguntas">
17
18 <#if entries?has_content>
19 <#list entries as curEntry>
20 <#assign renderer = curEntry.getAssetRenderer() />
21
22 <#assign article = renderer.getArticle() >
23 <#assign document = saxReaderUtil.read(article.getContent()) >
24 <#assign rootElement = document.getRootElement() >
25 <#assign xPathSelector = saxReaderUtil.createXPath("dynamic-element[@name='respuesta']") >
26 <#assign respuesta = xPathSelector.selectSingleNode(rootElement).getStringValue()>
27
28 <#assign mes = mesesHash[renderer.getDisplayDate()?string["MMMM"]]>
29 <#assign fecha = mes+" "+ renderer.getDisplayDate()?string["dd"]+", de "+renderer.getDisplayDate()?string["yyyy"]>
30 <#assign mostrar=false>
31 <#assign viewURL = assetPublisherHelper.getAssetViewURL(renderRequest, renderResponse, curEntry) />
32 <#if assetLinkBehavior != "showFullContent">
33 <#assign viewURL = renderer.getURLViewInContext(renderRequest, renderResponse, viewURL) />
34 </#if>
35
36 <#assign tags=' '>
37 <#list curEntry.getTags() as tag>
38 <#assign tags+=' '+tag.name>
39
40 </#list>
41<#assign
42 entry = curEntry
43 assetRenderer = entry.getAssetRenderer()
44 />
45 <div class="pregunta">
46 <@getEditIcon />
47 <div class="respuesta hidden">${curEntry.getTitleCurrentValue()+tags+' '+respuesta}</div>
48 <h2>${curEntry.getTitleCurrentValue()}</h2>
49
50 <p>${fecha}</p>
51 <div class="ver-todo"><a href="${viewURL}"><h4>VER RESPUESTA</h4></a></div>
52 <div class="redes">
53 <a onclick="postToFeed('${viewURL}', '${viewURL}', '${curEntry.getTitleCurrentValue()}', '${curEntry.getTitleCurrentValue()}', ''); return false;" href="javascript:;"><img src="${themeDisplay.getPathThemeImages()}/redes/facebook-circle.png" /></a>
54 <a href="https://twitter.com/intent/tweet?text=${curEntry.getTitleCurrentValue()}&url=${viewURL}"><img src="${themeDisplay.getPathThemeImages()}/redes/twitter-circle.png" /></a>
55 </div>
56 </div>
57
58 </#list>
59
60 <#-- <#if 1<(1+(entries?size+1)/5)>
61 <nav aria-label="navegacion de pagina">
62 <ul class="pagination">
63 <li class="page-item">
64 <button onclick="cambiarPagina(-1);" aria-hidden="true">«</button>
65 <button onclick="cambiarPagina(-1);" class="sr-only">anterior</button>
66 </li>
67 <#list 1..<(1+(entries?size+1)/5)?ceiling as j>
68 <li class="page-item"><button class="page-link" onclick="saltarPagina(${j});">${j}</button></li>
69 </#list>
70
71 <li class="page-item">
72 <button onclick="cambiarPagina(1);" aria-hidden="true">»</button>
73 <button onclick="cambiarPagina(1);" class="sr-only">Siguiente</button>
74 </li>
75 </ul>
76 </nav>
77 </#if> -->
78
79 </#if>
80 </div>
81</div>
82<style type="text/css">
83#preguntas_frecuentes ~ .taglib-page-iterator {
84 display: block!important;
85}
86.taglib-categorization-filter.entry-title{
87 display:none;
88}
89
90</style>
91
92<#macro getEditIcon>
93<#if assetRenderer.hasEditPermission(themeDisplay.getPermissionChecker())>
94<#assign redirectURL = renderResponse.createRenderURL() />
95
96${redirectURL.setParameter("mvcPath", "/add_asset_redirect.jsp")}
97${redirectURL.setWindowState("pop_up")}
98
99<#assign editPortletURL = assetRenderer.getURLEdit(renderRequest, renderResponse, windowStateFactory.getWindowState("pop_up"), redirectURL)!"" />
100
101<#if validator.isNotNull(editPortletURL)>
102<#-- <#assign title = languageUtil.format(locale, "edit-x", entryTitle, false) /> -->
103<#assign title = 'Editar' />
104
105<@liferay_ui["icon"]
106cssClass="icon-monospaced visible-interaction"
107icon="pencil"
108markupView="lexicon"
109message=title
110url="javascript:Liferay.Util.openWindow({id:'" + renderResponse.getNamespace() + "editAsset', title: '" + title + "', uri:'" + htmlUtil.escapeURL(editPortletURL.toString()) + "'});"
111/>
112</#if>
113</#if>
114</#macro>