test plexus - TAC
Publicador de contenidos
Se ha producido un error al procesar la plantilla.
The following has evaluated to null or missing: ==> article.getArticleImageURL(themeDisplay) [in template "20116#20160#326408" at line 58, column 46] ---- Tip: If the failing expression is known to be legally refer to something that's sometimes null or missing, either specify a default value like myOptionalVar!myDefault, or use <#if myOptionalVar??>when-present<#else>when-missing</#if>. (These only cover the last step of the expression; to cover the whole expression, use parenthesis: (myOptionalVar.foo)!myDefault, (myOptionalVar.foo)?? ---- ---- FTL stack trace ("~" means nesting-related): - Failed at: #assign URLImage = article.getArticle... [in template "20116#20160#326408" at line 58, column 26] ----
1<#-- ESTILOS EN EL TEMA
2
3<style>
4 #unDosTres.contenedorGeneral .elemento{
5 width: 49.5%;
6 padding-bottom: 30%;
7 float: left;
8 }
9
10
11 #unDosTres.contenedorGeneral .dosDias{
12 float:left;
13 }
14
15 #unDosTres.contenedorGeneral .tresDias{
16 margin: 0 0% 1% 0 !important;
17 float:right !important;
18 }
19
20 @media only screen and (max-width: 991px){
21 #unDosTres.contenedorGeneral .elemento{padding-bottom: 40% !important;}
22 #unDosTres.contenedorGeneral .dosDias{width:47% !important; }
23 #unDosTres.contenedorGeneral .tresDias{width:47% !important;}
24 }
25 @media only screen and (max-width: 767px){
26 #unDosTres.contenedorGeneral .dosDias{width:100% !important; margin: 3% 2% 0% 0% !important;}
27 #unDosTres.contenedorGeneral .tresDias{width:100% !important; margin: 3% 0% 4% 0% !important;}
28 }
29 @media only screen and (max-width: 476px){
30 #unDosTres.contenedorGeneral .dosDias{ margin: 4% 0% 0% 0% !important;}
31 #unDosTres.contenedorGeneral .tresDias{ margin: 4% 0% 4% 0% !important;}
32 }
33</style>
34
35-->
36
37
38
39<#if entries?has_content>
40 <div class="contenedorGeneral" id="unDosTres">
41 <#list entries as curEntry>
42 <#assign comprobarFecha = false >
43 <#if (curEntry.getExpirationDate())??>
44 <#if (curEntry.getExpirationDate()?date < .now?date || curEntry.getDisplayDate()?date > .now?date)>
45 <#assign comprobarFecha = true >
46 </#if>
47 </#if>
48
49 <#if comprobarFecha == false>
50 <#assign viewURL = assetPublisherHelper.getAssetViewURL(renderRequest, renderResponse, curEntry, true) />
51
52 <#assign classPK = curEntry.getClassPK()> <#--Obtenemos la clave primaria (Primary Key) del correspondiente asset a mostrar-->
53 <#assign journalArticleLocalService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService")>
54 <#assign article = journalArticleLocalService.getLatestArticle(classPK)>
55
56 <#assign titulo = article.getTitle(themeDisplay.getLocale())>
57 <#assign resumenFull = article.getDescription(themeDisplay.getLocale())>
58 <#assign URLImage = article.getArticleImageURL(themeDisplay)>
59
60
61 <#if resumenFull?length gt 160>
62 <#assign indiceCorte = resumenFull[0..160]?last_index_of(" ")>
63 <#assign resumen = resumenFull[0..indiceCorte]?ensure_ends_with(" (...)")>
64 <#else>
65 <#assign resumen = resumenFull>
66 </#if>
67
68 <a href='${viewURL}'>
69 <#if curEntry?index%2 != 0>
70 <div class="elemento tresDias" >
71 <#else>
72 <div class="elemento dosDias">
73 </#if>
74 <div class="contenedorImagen">
75 <img class="imagen" alt="No hay imagen disponible de ${titulo}" src="${URLImage}"/>
76 </div>
77
78 <div class="simboloMas">
79 <span class="icon-plus"></span>
80 </div>
81
82 <div class="texto">
83 <p class="titulo">${titulo}</p> <br>
84 <p class="descripcion">${resumen}</p>
85 </div>
86 </div>
87 </a>
88 </#if>
89 </#list>
90 </div>
91</#if>