La Plaza de Sanse
Publicado 19/1/22
Se ha producido un error al procesar la plantilla.
Java method "as.asac.template.tools.AssetToolImpl.getHTMLRelatedAssets(com.liferay.asset.kernel.model.AssetEntry, String, String, String, com.liferay.portal.kernel.portlet.LiferayPortletRequest, com.liferay.portal.kernel.portlet.LiferayPortletResponse, boolean, int)" threw an exception when invoked on as.asac.template.tools.AssetToolImpl object "as.asac.template.tools.AssetToolImpl@5d9c7def"; see cause exception in the Java stack trace. ---- FTL stack trace ("~" means nesting-related): - Failed at: #assign htmlRelatedJournals = assetTo... [in template "37845#37873#1468693" at line 19, column 9] ----
1<#assign articleId = .vars['reserved-article-id'].data>
2<#assign title = .vars['reserved-article-title'].data>
3<#assign description=.vars["reserved-article-description"].data />
4<#assign smallImageUrl=.vars["reserved-article-small-image-url"].data />
5<#assign date=.vars["reserved-article-display-date"].data />
6<#assign request = .vars['request']>
7<#assign dateFormated = journalTool.getDateFormat(date, "dd MMMM yyyy", locale, timezone)>
8<#assign categoriesNames = journalTool.getCategoriesNames(groupId,articleId , locale)>
9<#assign tagsNames = journalTool.getTagsNames(groupId,articleId)>
10<#assign journalArticleLocalServiceUtil = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService")>
11<#assign journalArticle = journalArticleLocalServiceUtil.fetchLatestArticle(groupId, articleId, -1)>
12<#--assign journalArticle = journalTool.getJournalArticleByArticleId(groupId,articleId)/ -->
13<#assign userName = journalArticle.getUserName()>
14<#assign assetEntry = journalTool.getAssetEntryByArticleId(groupId, articleId)>
15<#assign articleURL = journalTool.getDisplayPage(journalArticle, themeDisplay, false)/>
16<#--assign htmlRelatedJournals = journalTool.getHTMLRelatedJournalArticles(themeDisplay, articleId, "related-journal-wrapper row", "col-lg-4 col-md-6 col-sm-12", renderRequest, renderResponse)-->
17
18<#if renderRequest?? && renderResponse??>
19 <#assign htmlRelatedJournals = assetTool.getHTMLRelatedAssets(assetEntry, "related-journal-wrapper row", "col-lg-4 col-md-6 col-sm-12","", renderRequest, renderResponse, true, 3)>
20</#if>
21
22 <article class="template template-news-detail">
23
24 <div class= "categoriesName mb-3">
25 <#assign categories = journalTool.getCategories(groupId,articleId )>
26
27 <#list categories as category>
28 <#assign categoryId= category.categoryId />
29 <#assign categoryName = category.name/>
30
31 <#assign currentURL = portalUtil.getLayoutFullURL(themeDisplay.getLayout(), themeDisplay)/>
32 <#assign categoryURL = currentURL + "?p_r_p_categoryIds=${categoryId}"/>
33
34
35 <#if categoryName?contains("Pleno Municipal") || categoryName?contains("Comercio")>
36 <#assign cssCategoryClass = "colorRojo">
37 <a href="${categoryURL}">
38 <span class="btn ${cssCategoryClass} text-white mb-3 important">${categoryName} </span>
39 </a>
40 <#else>
41 <#assign cssCategoryClass = "colorNaranja">
42 <a href="${categoryURL}">
43 <span class="btn ${cssCategoryClass} text-white mb-3 important">${categoryName} </span>
44 </a>
45 </#if>
46 </#list>
47 </div>
48
49
50 <div class="portlet-title-wrapper">
51 <div class="portlet-title h1" data-track-content>${title}</div>
52 </div>
53
54 <#--<div class= "userName mb-3">Por <strong>${userName}</strong></div>-->
55 <div class= "userName mb-3">Por <strong>La Plaza de Sanse</strong></div>
56 <div class="separator"></div>
57 <div class="date-wrapper text-metadata mb-3">
58 <span class="fa fa-calendar"><span class="hide-accessible"><@liferay.language key="date" /></span> </span><span class="date">${dateFormated} </span>
59 <span class="fa fa-tag"> </span>
60 <#list tagsNames as t>
61 <#if t?is_last>
62 <span class="tags">${t?capitalize}</span>
63 <#else>
64 <span class="tags">${t?capitalize},</span>
65 </#if>
66 </#list>
67 </div>
68
69 <section class="news-detail mt-4 ms-4 mb-4">
70 <#if validator.isNotNull(smallImageUrl)>
71 <div class="feat-image text-center mb-3">
72 <a href="${smallImageUrl}" title="Imagen ${title}" class="image-wrapper image-wrapper-cover image-wrapper-style lightbox" style="background-image: url('${dlTool.getThumbnail(smallImageUrl, 3)}');">
73 <img src="${dlTool.getThumbnail(smallImageUrl, 3)}" alt="Imagen ${title}" />
74 </a>
75 </div>
76 </#if>
77 <div class="social-wrapper mb-3">
78 <@liferay_social_bookmarks["bookmarks"]
79 className="com.liferay.journal.model.JournalArticle"
80 classPK=assetEntry.getEntryId()
81 displayStyle="inline"
82 target="_blank"
83 title=title
84 types=articleSocialBookmarks
85 url="${articleURL}"
86 />
87 </div>
88 <!--<#if validator.isNotNull(description)>
89 <div class="text-abstract text-align h5">${description}</div>
90 </#if>
91 -->
92 <#if Descripcion?has_content && validator.isNotNull(Descripcion.data)>
93 <div class="text text-align">${Descripcion.getData()}</div>
94 <!--<div class= "userName mb-3"><strong>${userName}</strong></div>-->
95 </#if>
96 </section>
97
98 <#if Documentos?has_content && Documentos.Documento?has_content>
99 <#assign htmlDocuments = journalTool.getHTMLDocuments(Documentos.Documento.getSiblings()) !/>
100 <#if validator.isNotNull(htmlDocuments)>
101 <section class="documents ms-4">
102 <div class="h5">${languageUtil.get(locale, "documents")}</div>
103 ${htmlDocuments}
104 </section>
105 </#if>
106 </#if>
107
108 <#if Galeria?has_content && Galeria.Imagen?has_content>
109 <#assign htmlGallery = journalTool.getHTMLGallery(Galeria.Imagen.getSiblings(), 3, "gallery-thumbs") />
110 <#if validator.isNotNull(htmlGallery)>
111 <section class="image-gallery">
112 <div class="h5">${languageUtil.get(locale, "image-gallery")}</div>
113 ${htmlGallery}
114 </section>
115 </#if>
116 </#if>
117
118 <#if Enlaces?has_content && Enlaces.Enlace?has_content>
119 <#assign htmlLinks = journalTool.getHTMLLinks(getterUtil.getLong(groupId), locale, Enlaces.Enlace.getSiblings(), Enlaces.EnlaceInterno.getSiblings()) />
120 <#if validator.isNotNull(htmlLinks)>
121 <section class="links">
122 <div class="h5">${languageUtil.get(locale, "links")}</div>
123 ${htmlLinks}
124 </section>
125 </#if>
126 </#if>
127
128 <#if htmlRelatedJournals?? &&validator.isNotNull(htmlRelatedJournals)>
129 <div class="h5 title mb-4 border-top">${languageUtil.get(request, "related-assets")}</div>
130 <div class= "related-journal mb-3">${htmlRelatedJournals}</div>
131 </#if>
132 </article>
En redes sociales
Nuestro boletín
Pulsa sobre el siguiente botón para suscribirte al boletín de noticias digital gestionado por el Ayuntamiento de San Sebástián de los Reyes.