Blog Bluescazorla - Jaén Paraíso Interior

Bluescazorla BLog
Se ha producido un error al procesar la plantilla.
Java method "com.liferay.journal.model.impl.JournalArticleModelImpl.getSmallImageURL()" takes 0 arguments, but 1 was given. ---- FTL stack trace ("~" means nesting-related): - Failed at: #if (blogEntry.getSmallImageURL(theme... [in template "20101#20127#389405" at line 50, column 13] ----
1<#assign DLFolderLocalServiceUtil = serviceLocator.findService("com.liferay.document.library.kernel.service.DLFolderLocalService")/>
2<#assign DLAppServiceUtil = serviceLocator.findService("com.liferay.document.library.kernel.service.DLAppService")/>
3<#assign DLUtil = staticUtil["com.liferay.document.library.kernel.util.DLUtil"]>
4<#assign AssetEntryLocalServiceUtil = serviceLocator.findService("com.liferay.asset.kernel.service.AssetEntryLocalService")>
5<#list entries as curEntry>
6 <#assign countContent = curEntry?index/>
7 <#assign categories = curEntry.getCategories() />
8 <#list categories as category>
9 <#if (category.vocabularyId = 340465 )>
10 <#if category?counter = 1>
11 <#assign municipio = category.categoryId />
12 <#assign municipioName = category.name/>
13 <#assign UrlClean = category.name?lower_case?replace(" ", "-")?replace("á", "a")?replace("é", "e")?replace("í", "i")?replace("ó", "o")?replace("ú", "u")?replace("ñ", "n")?replace("ü", "u")>
14 <#break>
15 </#if>
16 </#if>
17
18 </#list>
19</#list>
20<#assign serviceContext = staticUtil["com.liferay.portal.kernel.service.ServiceContextThreadLocal"].getServiceContext()>
21<#assign themeDisplay = serviceContext.getThemeDisplay() />
22<#assign currentUrl = themeDisplay.getPortalURL() + themeDisplay.getURLCurrent() />
23<#if currentUrl?contains("/-/categories/")>
24 <#if municipio?exists>
25 <div class="mb-5">
26 <a class="link-enlace link volver" href="/web/jaen-paraiso-interior/${UrlClean}">${municipioName}</a>
27 </div>
28<#else>
29</#if>
30</#if>
31<div class="entradas-blog">
32
33 <div class="entradas w-100 h-100">
34 <#if entries?has_content>
35 <#list entries as curEntry>
36 <#assign
37 assetRenderer = curEntry.getAssetRenderer()
38 blogEntry = assetRenderer.getAssetObject()
39 />
40 <#assign assetRenderer = curEntry.getAssetRenderer() />
41 <#assign journalArticle = assetRenderer.getAssetObject()/>
42 <#assign renderer = curEntry.getAssetRenderer() />
43 <#assign className = renderer.getClassName() />
44 <#assign link=renderer.getURLViewInContext(renderRequest, renderResponse, '' ) />
45 <#if contentDisplayPageURL??>
46 <#assign link=contentDisplayPageURL + journalArticle.getUrlTitle() />
47 <#assign link=link + "?redirect=" + portalUtil.getCurrentURL(renderRequest) />
48 </#if>
49 <a href="${link}" class="entrada-el mb-4">
50 <#if (blogEntry.getSmallImageURL(themeDisplay)?exists)>
51 <div class="box-img" style="background-image:url(${blogEntry.getSmallImageURL(themeDisplay)})">
52 </div>
53 <#else>
54 <div class="box-img" style="background-image:url('/o/jaen-theme/images/img-fichas/empresas1.jpg')">
55 </div>
56 </#if>
57 <div class="box-texto">
58
59 <p class="title">
60 ${blogEntry.title }
61 </p>
62 <p class="sub-title">
63 ${blogEntry.displayDate?date}
64 </p>
65
66 <#if blogEntry.content?length < 300>
67 <p class="mt-1">${blogEntry.content}</p>
68 <#else>
69 <#if blogEntry.content?substring(0,290)?contains("<img")>
70 <#assign blogContent = blogEntry.content?substring(0,290)?split("<img") />
71 <p class="mt-1">${blogContent[0]} ... </p>
72 <#else>
73 <p class="mt-1">${blogEntry.content?substring(0,290)} ... </p>
74 </#if>
75 </#if>
76 </div>
77 </a>
78 </#list>
79 <#else>
80 <#assign countContent = 0/>
81 <div class="align-items-center d-flex justify-content-center mt-6">
82 <h3 class="text-center">Lo sentimos, no hay resultados para su búsqueda</h3>
83 </div>
84 </#if>
85 <div class="w-100 d-flex justify-content-center enlace-box" >
86 <span class="link-enlace" id="showMoreContent" >VER MÁS</span>
87 </div>
88 <span hidden class="btn-subir" ></span >
89 </div>
90
91</div>
92<script>
93$(document).ready(function(){
94if($(".entrada-el:hidden").length == 0){
95 $('#showMoreContent').attr("hidden",true)
96}
97$('#showMoreContent').click(function () {
98 let numeroEntradas = ${countContent};
99 console.log($(".entrada-el:hidden").length)
100 $('.btn-subir').attr("hidden",false)
101 $(".entrada-el:hidden:lt(6)").attr("hidden",false)
102 console.log(numeroEntradas)
103 if($(".entrada-el:hidden").length <= 6){
104 $('#showMoreContent').attr("hidden",true)
105 }
106
107});
108})
109
110
111
112$(".btn-subir").click(function (evento) {
113 $("html,body").animate({
114 scrollTop: $('body').offset().top + 200
115 },5000
116 );
117
118});
119</script>