Club Deportivo Sacyr - Blog
Se ha producido un error al procesar la plantilla.
Java method "com.sun.proxy.$Proxy77.getCategory(long)" threw an exception when invoked on com.sun.proxy.$Proxy77 object "com.liferay.asset.categories.internal.service.AssetCategoryPropertyAssetCategoryLocalServiceWrapper@1396c7f7"; 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 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<#assign AssetEntryAssetCategoryRelLocalService = serviceLocator.findService("com.liferay.asset.entry.rel.service.AssetEntryAssetCategoryRelLocalService")>
25<#assign LayoutLocalService = serviceLocator.findService("com.liferay.portal.kernel.service.LayoutLocalService")>
26
27<#assign blogVocabulary = AssetVocabularyLocalService.getGroupVocabulary(groupId, "Localización_BLOG")>
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 docXml = saxReaderUtil.read(curEntry.getAssetRenderer().getArticle().getContent()) />
78 <#assign document = saxReaderUtil.read(journalArticle.getContent()) />
79 <#assign rootElement = document.getRootElement() />
80 <#assign xPathSelector = saxReaderUtil.createXPath("dynamic-element[@name='separator']") >
81
82 <#-- Reseteo para la siguiente iteracion -->
83 <#assign postIntro = "" />
84 <#assign postTitle = docXml.valueOf( "//dynamic-element[@name='title']/dynamic-content[@language-id='" + locale + "']/text()") />
85 <#assign postIntro = docXml.valueOf( "//dynamic-element[@name='intro']/dynamic-content[@language-id='" + locale + "']/text()") />
86 <#assign img = docXml.valueOf( "//dynamic-element[@name='image']/dynamic-content[@language-id='" + locale + "']/text()") />
87 <#if isJson(img)>
88 <#assign imgJson = jsonFactoryUtil.createJSONObject(img)>
89 <#assign postImage = "/documents/" + imgJson.groupId + "/" + imgJson.uuid >
90 </#if>
91 <#assign fecha = docXml.valueOf( "//dynamic-element[@name='fechaEvento']/dynamic-content[@language-id='" + locale + "']/text()") />
92 <#assign fechaEventoObj = dateUtil.parseDate("yyyy-MM-dd", fecha, locale)/>
93 <#assign postContent = docXml.valueOf( "//dynamic-element[@name='content']/dynamic-content[@language-id='" + locale + "']/text()") />
94 <#assign postContent = postContent?replace("<[^>]*>", "", "r") />
95
96 <#-- Entradilla del post -->
97 <#if postIntro?has_content && (postIntro?length > 10) >
98 <#assign postContent = postIntro />
99 </#if>
100
101 <#-- Categorías -->
102 <#assign categoriesLong = AssetEntryAssetCategoryRelLocalService.getAssetCategoryPrimaryKeys(curEntry.getEntryId())> <#-- long[] -->
103
104
105 <article id="post-${postId}" class="list-item post-${postId} post type-post status-publish format-standard has-post-thumbnail hentry">
106
107 <#if postImage?has_content >
108 <div class="post-img">
109 <a href="${assetViewUrl}"><img width="520" height="400" src="${postImage}" class="attachment-misc-thumb size-misc-thumb wp-post-image img-miniature"></a>
110 </div>
111 </#if>
112
113 <div class="list-content">
114
115 <div class="post-header">
116 <span class="cat">
117 <#if categoriesLong?has_content >
118 <#list categoriesLong as categoryId >
119 <#assign category = AssetCategoryLocalService.getAssetCategory(categoryId) />
120 <#-- Categorías del vocabulario Blog -->
121 <#if category.getVocabularyId() == blogVocabulary.getVocabularyId() >
122 <#assign categoryName = category.getName()?upper_case />
123 <#assign categoryID = category.getCategoryId() />
124 <#assign categoryURL = '/cat/-/categories/' + categoryID />
125 <a href="${categoryURL}" rel="category tag">${categoryName}</a>
126 </#if>
127 </#list>
128 </#if>
129 </span>
130 <h2>
131 <a href="${assetViewUrl}">${postTitle}</a>
132 </h2>
133 <span class="list-title-divider"></span>
134 </div>
135
136 <div class="post-entry">
137 <#if (postContent?length > 240) >
138 <p>${postContent[0..240]}…</p>
139 <#else>
140 <p>${postContent}…</p>
141 </#if>
142 </div>
143
144
145
146 <div class="list-meta">
147
148 <#if fechaEventoObj?has_content>
149 <#if (locale == "es_ES") >
150 <span class="post-date">${dateUtil.getDate(fechaEventoObj, "dd/MM/yyyy", locale)}</span>
151 <#else>
152 <span class="post-date">${dateUtil.getDate(fechaEventoObj, "dd/MM/yyyy", locale)}</span>
153 </#if>
154 <#else>
155 <#if (locale == "es_ES") >
156 <span class="post-date">${postDate?string["dd/MM/yyyy"]}</span>
157 <#else>
158 <span class="post-date">${postDate?string["MM/dd/yyyy"]}</span>
159 </#if>
160 </#if>
161 </div>
162 </div>
163 </article>
164 </#list>
165 </#if>
166</div>
167
168<#function isJson json>
169 <#local value = json?trim>
170 <#return value?has_content && value?starts_with("{") && value?ends_with("}")>
171</#function>
Actividades
- Baile (5)
- Baloncesto (3)
- Bicicleta (2)
- Boxeo (2)
- Carreras (68)
- Entr. Running (8)
- Fuerza (5)
- Fútbol (20)
- Fútbol Sala (2)
- Golf (8)
- Mindfulness (1)
- Moto (8)
- Natación (3)
- Otros (16)
- Padel (43)
- Pilates (6)
- Power Walking (4)
- Senderismo (28)
- Voleibol (6)
- Yoga (6)