1<div class="container">
2<#assign url = themeDisplay.getURLCurrent() >
3
4<#if ((request.getParameter("p_r_p_categoryId")?has_content) && (request.getParameter("p_r_p_categoryId")!="") ) >
5
6 <#assign catID = request.getParameter("p_r_p_categoryId")
7 assetCategoryLocalServiceUtil = staticUtil["com.liferay.asset.kernel.service.AssetCategoryLocalServiceUtil"]
8 cat = assetCategoryLocalServiceUtil.getCategory(catID?number)
9 >
10 <h3>${cat.getName()}</h3>
11
12
13
14<#if !entries?has_content>
15 <p><@liferay_ui["message"] key="there-are-no-results" /></p>
16
17<#else>
18 <ul>
19 <#list entries as entry>
20 <#assign
21 entry = entry
22
23 assetRenderer = entry.getAssetRenderer()
24
25 journalArticle = assetRenderer.getAssetObject()
26 document = saxReaderUtil.read(journalArticle.getContentByLocale(locale))
27
28 preguntaNode = document.selectSingleNode("/root/dynamic-element[@name='Pregunta']/dynamic-content")
29
30 entryTitle = htmlUtil.escape(assetRenderer.getTitle(locale))
31
32 viewURL = assetPublisherHelper.getAssetViewURL(renderRequest, renderResponse, assetRenderer, entry, !stringUtil.equals(assetLinkBehavior, "showFullContent"))
33
34
35 summary= htmlUtil.escape(assetRenderer.getSummary())
36
37 categories = entry.getCategories()
38
39 />
40
41
42 <li>
43 <!-- Pregunta -->
44 <div class="faq">
45 <div class="titulo">
46
47 <h3 class="asset-title">
48 <a href="${viewURL}" title="${preguntaNode.getText()}">
49 ${preguntaNode.getText()}
50 </a>
51 </h3>
52
53 </div>
54
55 <div class="asset-content">
56
57 <!-- Titulo y resumen-->
58 <div class="asset-summary">
59 <#if summary?? && summary!="">
60 ${summary}
61 </#if>
62 </div>
63
64
65
66 </div>
67 </div>
68
69 </li>
70
71 </#list>
72 </ul>
73 </#if>
74
75</#if>
76</div>