Club Deportivo Sacyr - Blog
Se ha producido un error al procesar la plantilla.
Java method "jdk.proxy3.$Proxy78.getCategory(long)" threw an exception when invoked on jdk.proxy3.$Proxy78 object "com.liferay.asset.categories.internal.service.AssetCategoryPropertyAssetCategoryLocalServiceWrapper@6845239f"; see cause exception in the Java stack trace.
----
FTL stack trace ("~" means nesting-related):
- Failed at: #assign filteredCategory = AssetCateg... [in template "42020#42061#119003229" at line 42, 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.post-header .cat {
22 font-weight: 400;
23 font-size: 11px;
24 letter-spacing: 2px;
25 text-transform: uppercase;
26 margin: 0 3px 3px;
27 color: #C39F76;
28}
29
30</style>
31<#assign AssetCategoryLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetCategoryLocalService")>
32<#assign AssetVocabularyLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetVocabularyLocalService")>
33<#assign AssetEntryAssetCategoryRelLocalService = serviceLocator.findService("com.liferay.asset.entry.rel.service.AssetEntryAssetCategoryRelLocalService")>
34<#assign LayoutLocalService = serviceLocator.findService("com.liferay.portal.kernel.service.LayoutLocalService")>
35
36<#assign blogVocabulary = AssetVocabularyLocalService.getGroupVocabulary(groupId, "Localización_BLOG")>
37
38
39<#if request.getParameter("p_r_p_categoryId")??>
40 <#assign filteredCategoryId = request.getParameter("p_r_p_categoryId") >
41 <#if filteredCategoryId?has_content>
42 <#assign filteredCategory = AssetCategoryLocalService.getCategory(filteredCategoryId?number) >
43 <#assign filteredCategoryName = filteredCategory.getName()?upper_case >
44 </#if>
45</#if>
46
47<#if request.getParameter("p_r_p_tag")??>
48 <#assign filteredTag = request.getParameter("p_r_p_tag") >
49
50</#if>
51
52
53<div id="main webcontent-list">
54 <#if filteredCategoryName??>
55 <div class="archive-box">
56 <#if filteredCategoryName??>
57 <#if (locale == "es_ES") >
58 <span>Categoría</span>
59 <#else>
60 <span>Category</span>
61 </#if>
62 <h1>${filteredCategoryName}</h1>
63 </#if>
64 <#if filteredTag??>
65 <#if (locale == "es_ES") >
66 <span>Etiqueta de navegación</span>
67 <#else>
68 <span>Browsing Tag</span>
69 </#if>
70 <h1>${filteredTag}</h1>
71 </#if>
72 </div>
73 </#if>
74
75 <#if entries?has_content>
76 <#list entries as curEntry>
77
78 <#-- Información del entry -->
79 <#assign assetViewUrl = assetPublisherHelper.getAssetViewURL(renderRequest, renderResponse, curEntry, true) >
80 <#assign postDate = curEntry.getPublishDate() >
81
82 <#-- Extraemos los campos del web content recorriendo su estructura -->
83 <#assign renderer = curEntry.getAssetRenderer() >
84 <#assign journalArticle = renderer.getArticle() >
85 <#assign postId = journalArticle.getPrimaryKey() >
86 <#assign docXml = saxReaderUtil.read(curEntry.getAssetRenderer().getArticle().getContent()) />
87 <#assign document = saxReaderUtil.read(journalArticle.getContent()) />
88 <#assign rootElement = document.getRootElement() />
89 <#assign xPathSelector = saxReaderUtil.createXPath("dynamic-element[@name='separator']") >
90
91 <#-- Reseteo para la siguiente iteracion -->
92 <#assign postIntro = "" />
93 <#assign postTitle = docXml.valueOf( "//dynamic-element[@name='title']/dynamic-content[@language-id='" + locale + "']/text()") />
94 <#assign postIntro = docXml.valueOf( "//dynamic-element[@name='intro']/dynamic-content[@language-id='" + locale + "']/text()") />
95 <#assign img = docXml.valueOf( "//dynamic-element[@name='image']/dynamic-content[@language-id='" + locale + "']/text()") />
96 <#if isJson(img)>
97 <#assign imgJson = jsonFactoryUtil.createJSONObject(img)>
98 <#assign postImage = "/documents/" + imgJson.groupId + "/" + imgJson.uuid >
99 </#if>
100 <#assign fecha = docXml.valueOf( "//dynamic-element[@name='fechaEvento']/dynamic-content[@language-id='" + locale + "']/text()") />
101 <#assign fechaEventoObj = dateUtil.parseDate("yyyy-MM-dd", fecha, locale)/>
102 <#assign postContent = docXml.valueOf( "//dynamic-element[@name='content']/dynamic-content[@language-id='" + locale + "']/text()") />
103 <#assign postContent = postContent?replace("<[^>]*>", "", "r") />
104
105 <#-- Entradilla del post -->
106 <#if postIntro?has_content && (postIntro?length > 10) >
107 <#assign postContent = postIntro />
108 </#if>
109
110 <#-- Categorías -->
111 <#assign categoriesLong = AssetEntryAssetCategoryRelLocalService.getAssetCategoryPrimaryKeys(curEntry.getEntryId())> <#-- long[] -->
112
113
114 <article id="post-${postId}" class="list-item post-${postId} post type-post status-publish format-standard has-post-thumbnail hentry">
115
116 <#if postImage?has_content >
117 <div class="post-img">
118 <a href="${assetViewUrl}"><img width="520" height="400" src="${postImage}" class="attachment-misc-thumb size-misc-thumb wp-post-image img-miniature"></a>
119 </div>
120 </#if>
121
122 <div class="list-content">
123
124 <div class="post-header">
125 <span class="cat">
126 <#if categoriesLong?has_content >
127 <#list categoriesLong as categoryId >
128 <#assign category = AssetCategoryLocalService.getAssetCategory(categoryId) />
129 <#-- Categorías del vocabulario Blog -->
130 <#if category.getVocabularyId() == blogVocabulary.getVocabularyId() >
131 <#assign categoryName = category.getName()?upper_case />
132 <#-- <#assign categoryID = category.getCategoryId() />
133 <#assign categoryURL = '/cat/-/categories/' + categoryID />
134 <a href="${categoryURL}" rel="category tag">${categoryName}</a> -->
135 ${categoryName}
136 </#if>
137 </#list>
138 </#if>
139 </span>
140 <h2>
141 <a href="${assetViewUrl}">${postTitle}</a>
142 </h2>
143 <span class="list-title-divider"></span>
144 </div>
145
146 <div class="post-entry">
147 <#if (postContent?length > 240) >
148 <p>${postContent[0..240]}…</p>
149 <#else>
150 <p>${postContent}…</p>
151 </#if>
152 </div>
153
154
155
156 <div class="list-meta">
157
158 <#if fechaEventoObj?has_content>
159 <#if (locale == "es_ES") >
160 <span class="post-date">${dateUtil.getDate(fechaEventoObj, "dd/MM/yyyy", locale)}</span>
161 <#else>
162 <span class="post-date">${dateUtil.getDate(fechaEventoObj, "dd/MM/yyyy", locale)}</span>
163 </#if>
164 <#else>
165 <#if (locale == "es_ES") >
166 <span class="post-date">${postDate?string["dd/MM/yyyy"]}</span>
167 <#else>
168 <span class="post-date">${postDate?string["MM/dd/yyyy"]}</span>
169 </#if>
170 </#if>
171 </div>
172 </div>
173 </article>
174 </#list>
175 </#if>
176</div>
177
178<#function isJson json>
179 <#local value = json?trim>
180 <#return value?has_content && value?starts_with("{") && value?ends_with("}")>
181</#function>
Actividades
- Baile (6)
- Baloncesto (3)
- Bicicleta (2)
- Boxeo (2)
- Carreras (91)
- Cricket (1)
- Entr. Running (8)
- Fuerza (6)
- Fútbol (24)
- Fútbol Sala (4)
- Golf (8)
- Mindfulness (2)
- Moto (8)
- Natación (4)
- Otros (18)
- Padel (60)
- Pilates (6)
- Power Walking (4)
- Senderismo (35)
- Voleibol (6)
- Yoga (6)
