Club Deportivo Sacyr - Actividades
Se ha producido un error al procesar la plantilla.
Java method "com.sun.proxy.$Proxy130.getCategory(long)" threw an exception when invoked on com.sun.proxy.$Proxy130 object "com.liferay.portlet.asset.service.impl.AssetCategoryLocalServiceImpl@147c0c3a"; see cause exception in the Java stack trace. ---- FTL stack trace ("~" means nesting-related): - Failed at: #assign filteredCategory = AssetCateg... [in template "16924578#16924624#32196776" at line 33, column 9] ----
1<style>
2
3.img-miniature{
4 border-radius: 50px 0 50px 0;
5}
6
7/* On screens that are 992px or less, set the background color to blue */
8@media screen and (max-width: 770px) {
9 .img-miniature{
10 border-radius: 25px 0 25px 0;
11 }
12}
13
14/* On screens that are 600px or less, set the background color to olive */
15@media screen and (max-width: 600px) {
16 .img-miniature{
17 border-radius: 15px 0 15px 0;
18 }
19}
20
21</style>
22<#assign AssetCategoryLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetCategoryLocalService")>
23<#assign AssetVocabularyLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetVocabularyLocalService")>
24
25<#assign LayoutLocalService = serviceLocator.findService("com.liferay.portal.kernel.service.LayoutLocalService")>
26
27<#assign blogVocabulary = AssetVocabularyLocalService.getGroupVocabulary(groupId, "Localización_ACTIVIDADES")>
28
29
30<#if request.getParameter("p_r_p_categoryId")??>
31 <#assign filteredCategoryId = request.getParameter("p_r_p_categoryId") >
32 <#if filteredCategoryId?has_content>
33 <#assign filteredCategory = AssetCategoryLocalService.getCategory(filteredCategoryId?number) >
34 <#assign filteredCategoryName = filteredCategory.getName()?upper_case >
35 </#if>
36</#if>
37
38<#if request.getParameter("p_r_p_tag")??>
39 <#assign filteredTag = request.getParameter("p_r_p_tag") >
40
41</#if>
42
43
44<div id="main webcontent-list">
45 <#if filteredCategoryName??>
46 <div class="archive-box">
47 <#if filteredCategoryName??>
48 <#if (locale == "es_ES") >
49 <span>Categoría</span>
50 <#else>
51 <span>Category</span>
52 </#if>
53 <h1>${filteredCategoryName}</h1>
54 </#if>
55 <#if filteredTag??>
56 <#if (locale == "es_ES") >
57 <span>Etiqueta de navegación</span>
58 <#else>
59 <span>Browsing Tag</span>
60 </#if>
61 <h1>${filteredTag}</h1>
62 </#if>
63 </div>
64 </#if>
65
66 <#if entries?has_content>
67 <#list entries as curEntry>
68
69 <#-- Información del entry -->
70 <#assign assetViewUrl = assetPublisherHelper.getAssetViewURL(renderRequest, renderResponse, curEntry, true) >
71 <#assign postDate = curEntry.getPublishDate() >
72
73 <#-- Extraemos los campos del web content recorriendo su estructura -->
74 <#assign renderer = curEntry.getAssetRenderer() >
75 <#assign journalArticle = renderer.getArticle() >
76 <#assign postId = journalArticle.getPrimaryKey() >
77 <#assign document = saxReaderUtil.read(journalArticle.getContent()) />
78 <#assign rootElement = document.getRootElement() />
79 <#assign xPathSelector = saxReaderUtil.createXPath("dynamic-element[@name='separator']") >
80
81 <#-- Reseteo para la siguiente iteracion -->
82 <#assign postIntro = "" />
83
84 <#list xPathSelector.selectNodes(rootElement) as separatorNode>
85 <#assign titleXPathSelector = saxReaderUtil.createXPath("dynamic-element[@name='title']") >
86 <#list titleXPathSelector.selectNodes(separatorNode) as title>
87 <#assign postTitle = title.getStringValue() />
88 </#list>
89 <#assign introXPathSelector = saxReaderUtil.createXPath("dynamic-element[@name='intro']") >
90 <#list introXPathSelector.selectNodes(separatorNode) as intro>
91 <#assign postIntro = intro.getStringValue() />
92 </#list>
93 <#assign imageXPathSelector = saxReaderUtil.createXPath("dynamic-element[@name='image']") >
94 <#list imageXPathSelector.selectNodes(separatorNode) as image>
95 <#if image.getData()?has_content >
96 <#assign postImage = image.getStringValue()?trim />
97 </#if>
98 </#list>
99 <#assign fechaXPathSelector = saxReaderUtil.createXPath("dynamic-element[@name='fechaEvento']") >
100 <#list fechaXPathSelector.selectNodes(separatorNode) as fechaEvento>
101 <#assign fecha = getterUtil.getString(fechaEvento.getStringValue())/>
102 <#assign fechaEventoObj = dateUtil.parseDate("yyyy-MM-dd", fecha, locale)/>
103 </#list>
104
105
106
107 <#assign titleXPathSelector = saxReaderUtil.createXPath("dynamic-element[@name='content']") >
108 <#list titleXPathSelector.selectNodes(separatorNode) as content>
109 <#assign postContent = content.getStringValue()?replace("<[^>]*>", "", "r") />
110 </#list>
111 </#list>
112 <#-- Entradilla del post -->
113 <#if postIntro?has_content && (postIntro?length > 10) >
114 <#assign postContent = postIntro />
115 </#if>
116
117 <#-- Categorías -->
118 <#assign categories = AssetCategoryLocalService.getAssetEntryAssetCategories(curEntry.getEntryId())>
119
120
121 <article id="post-${postId}" class="list-item post-${postId} post type-post status-publish format-standard has-post-thumbnail hentry">
122
123 <#if postImage?has_content >
124 <div class="post-img">
125 <a href="${assetViewUrl}"><img width="520" height="400" src="${postImage}" class="attachment-misc-thumb size-misc-thumb wp-post-image img-miniature"></a>
126 </div>
127 </#if>
128
129 <div class="list-content">
130
131 <div class="post-header">
132 <span class="cat">
133 <#if categories?has_content >
134 <#list categories as category >
135 <#-- Categorías del vocabulario Blog -->
136 <#if category.getVocabularyId() == blogVocabulary.getVocabularyId() >
137 <#assign categoryName = category.getName()?upper_case />
138 <#assign categoryID = category.getCategoryId() />
139 <#assign categoryURL = '/cat/-/categories/' + categoryID />
140 <a href="${categoryURL}" rel="category tag">${categoryName}</a>
141 </#if>
142 </#list>
143 </#if>
144 </span>
145 <h2>
146 <a href="${assetViewUrl}">${postTitle}</a>
147 </h2>
148 <span class="list-title-divider"></span>
149 </div>
150
151 <div class="post-entry">
152 <#if (postContent?length > 240) >
153 <p>${postContent[0..240]}…</p>
154 <#else>
155 <p>${postContent}…</p>
156 </#if>
157 </div>
158
159
160
161 <div class="list-meta">
162
163 <#if fechaEventoObj?has_content>
164 <#if (locale == "es_ES") >
165 <span class="post-date">${dateUtil.getDate(fechaEventoObj, "dd/MM/yyyy", locale)}</span>
166 <#else>
167 <span class="post-date">${dateUtil.getDate(fechaEventoObj, "dd/MM/yyyy", locale)}</span>
168 </#if>
169 <#else>
170 <#if (locale == "es_ES") >
171 <span class="post-date">${postDate?string["dd/MM/yyyy"]}</span>
172 <#else>
173 <span class="post-date">${postDate?string["MM/dd/yyyy"]}</span>
174 </#if>
175 </#if>
176 </div>
177 </div>
178 </article>
179 </#list>
180 </#if>
181</div>