Noticias
Noticias
Se ha producido un error al procesar la plantilla.
The following has evaluated to null or missing: ==> journalArticleLocalService.getLatestArticle(entry.getClassPK()).getDDMFormValues().getDDMFormFieldValues()[3].getValue().getString(locale) [in template "20096#20122#9811899" at line 72, column 54] ---- Tip: If the failing expression is known to 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: #if journalArticleLocalService.getLat... [in template "20096#20122#9811899" at line 72, column 49] ----
1<style>
2 .contSecNoticias {
3 background: #f6f2f3;
4 padding: 100px 0;
5 }
6
7 .contSecNoticias .title {
8 font-size: 25px;
9 font-weight: 600;
10 }
11
12 .contSecNoticias > div > div:not(:last-child) {
13 margin-bottom: 54px;
14 }
15
16 .contSecNoticias .secNoticiaItem {
17 margin-bottom: 20px;
18 }
19
20 .contSecNoticias .secNoticiaItem .imgNoticiaItem {
21 height: 100%;
22 object-fit: cover;
23 }
24
25 .contSecNoticias .resumen {
26 color: #000000A1;
27 font-size: 20px;
28 display: -webkit-box;
29 line-clamp: 4;
30 -webkit-line-clamp: 4;
31 -webkit-box-orient: vertical;
32 overflow: hidden;
33 text-overflow: ellipsis;
34 height: 9rem;
35 }
36
37 .contSecNoticias .listaCats {
38 display: flex;
39 align-items: center;
40 flex-wrap: wrap;
41 }
42
43 .contSecNoticias .listaCats > span {
44 margin-right: 5px;
45 color: var(--brand-color-1);
46 }
47
48 .contSecNoticias a {
49 font-weight: 600;
50 color: var(--brand-color-1);
51 text-transform: uppercase;
52 }
53
54 @media screen and (max-width: 768px) {
55 .contSecNoticias .secNoticiaItem .imgNoticiaItem {
56 min-height: 20rem;
57 }
58 }
59
60</style>
61
62<#assign
63 AssetCategoryLocalService=serviceLocator.findService("com.liferay.asset.kernel.service.AssetCategoryLocalService") />
64<#assign journalArticleLocalService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService") />
65
66<#if entries?has_content>
67 <div class="contSecNoticias">
68 <#list entries as entry>
69 <div class="secNoticiaItem row p-0">
70 <div class="col-12 col-md-4">
71 <#if (journalArticleLocalService.getLatestArticle(entry.getClassPK()))??>
72 <#if journalArticleLocalService.getLatestArticle(entry.getClassPK()).getDDMFormValues().getDDMFormFieldValues()[3].getValue().getString(locale) != "" && !journalArticleLocalService.getLatestArticle(entry.getClassPK()).getDDMFormValues().getDDMFormFieldValues()[3].getValue().getString(locale)?contains("{")>
73 <iframe src="${journalArticleLocalService.getLatestArticle(entry.getClassPK()).getDDMFormValues().getDDMFormFieldValues()[3].getValue().getString(locale)}" class="imgNoticiaItem w-100" />
74 <#elseif (journalArticleLocalService.getLatestArticle(entry.getClassPK()).getDDMFormValues().getDDMFormFieldValues()[2].getValue().getString(locale))?? && journalArticleLocalService.getLatestArticle(entry.getClassPK()).getDDMFormValues().getDDMFormFieldValues()[2].getValue().getString(locale)?contains('url')>
75 <img src="${journalArticleLocalService.getLatestArticle(entry.getClassPK()).getDDMFormValues().getDDMFormFieldValues()[2].getValue().getString(locale)?split('url":"')[1]?split('"')[0]}" class="imgNoticiaItem w-100" alt="${journalArticleLocalService.getLatestArticle(entry.getClassPK()).getDDMFormValues().getDDMFormFieldValues()[2].getValue().getString(locale)?split('alt":"')[1]?split('"')[0]}" />
76 <#else>
77 <img alt="Logo de la AECID" src="/documents/d/global/noticias-convocatoria" class="imgNoticiaItem w-100">
78 </#if>
79 </#if>
80 </div>
81 <div class="col-12 col-md-8">
82 <p class="title">${entry.getHighlightedTitle()}</p>
83 <span class="resumen">
84 <#if entry?has_content>
85 ${entry.getContent()}
86 </#if>
87 </span>
88 <div class="col-12 row p-0">
89 <div class="col-12 col-md-8 listaCats p-0">
90 <#if entry.isAssetCategoriesOrTagsVisible()>
91 <#list AssetCategoryLocalService.getCategories(entry.getClassName(), entry.getClassPK()) as cat>
92 <span>${cat.getName()}</span>
93 <#if cat?has_next>
94 <span class="sep">|</span>
95 </#if>
96 <#if cat?index gte 3>
97 <#break />
98 </#if>
99 </#list>
100 </#if>
101 </div>
102 <div class="col-12 col-md-4 text-right">
103 <a href="${entry.getViewURL()}">Leer más</a>
104 </div>
105 </div>
106 </div>
107 </div>
108 </#list>
109 </div>
110</#if>
Fecha de modificación de la página: 19/08/2025