Noticias
Se ha producido un error al procesar la plantilla.
The following has evaluated to null or missing: ==> web.EnlaceNombre [in template "32656#32690#33935" at line 49, column 74] ---- Tip: It's the step after the last dot that caused this error, not those before it. ---- 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: #if validator.isNotNull(web.EnlaceNom... [in template "32656#32690#33935" at line 49, column 49] ----
1<#assign layoutTool = utilLocator.findUtil("lportal7.0ce-hook", "as.asac.template.tools.LayoutTool") />
2<#assign journalTool = utilLocator.findUtil("lportal7.0ce-hook", "as.asac.template.tools.JournalTool") />
3<#assign dlTool = utilLocator.findUtil("lportal7.0ce-hook", "as.asac.template.tools.DLTool") />
4<#assign layoutService = serviceLocator.findService("com.liferay.portal.kernel.service.LayoutLocalService") />
5
6<#assign title = .vars['reserved-article-title'].data>
7<#assign description=.vars["reserved-article-description"].data />
8<#assign smallImageUrl=.vars["reserved-article-small-image-url"].data />
9<#assign date=.vars["reserved-article-display-date"].data />
10<#assign request = .vars['request']>
11<#assign portletNamespace = request['portlet-namespace']!>
12<#assign themeDisplayStr = request['theme-display']!>
13
14<#assign smallImageFullUrl = "${themeDisplayStr['portal-url']!}${smallImageUrl}" />
15
16
17<#assign dateFormatted = journalTool.getDateFormat(date, "dd MMMM yyyy", locale, timezone)>
18
19<div class="template template-news detail">
20 <div class="row">
21 <#if validator.isNotNull(smallImageUrl)>
22 <div class="col-md-4">
23 <a href="${smallImageUrl}" title="Imagen ${title}" class="image lightbox">
24 <img class="img-responsive" src="${dlTool.getThumbnail(smallImageUrl, 3)}" alt="Imagen ${title}" />
25 </a>
26 </div>
27 </#if>
28 <div class="col-md-8">
29 <p class="date-wrapper text-default">
30 <small><span class="icon-calendar"><span class="hide-accessible"><@liferay.language key="date" /></span> </span><span class="date">${dateFormatted}</span></small>
31 </p>
32 <!--
33 <h3 class="title">
34 ${title}
35 </h3>
36 -->
37 <#if validator.isNotNull(Descripcion.data)>
38 <div class="text">${Descripcion.getData()}</div>
39 </#if>
40 <#if Enlaces.Enlace.getSiblings()?has_content || Enlaces.EnlaceInterno.getSiblings()?has_content>
41 <#if Enlaces.Enlace.data!="" || Enlaces.EnlaceInterno.data!="">
42 <div class="h3">Enlaces</div>
43 </#if>
44 <#if Enlaces.Enlace.getSiblings()?has_content && Enlaces.Enlace.data!="">
45 <div class="links-wrapper">
46 <ul class="links list-unstyled" style="margin: 10px 0;">
47 <#list Enlaces.Enlace.getSiblings() as web>
48 <#assign linkName = "${web.data}"/>
49 <#if validator.isNotNull(web.EnlaceNombre.data)>
50 <#assign linkName = "${web.EnlaceNombre.data}"/>
51 </#if>
52 <li class="link external-link fa fa-external-link-alt" style="margin-right: 5px;">
53 <a href="${web.data}" onclick="this.target='_blank'">${linkName}</a>
54 </li>
55 </#list>
56 </ul>
57 </div>
58 </#if>
59 <#if Enlaces.EnlaceInterno.getSiblings()?has_content && Enlaces.EnlaceInterno.data!="">
60 <div class="links-wrapper">
61 <ul class="links list-unstyled" style="margin: 10px 0;">
62 <#list Enlaces.EnlaceInterno.getSiblings() as web>
63 <#assign myLayout = layoutService.getLayout(getterUtil.getLong(groupId),false,web.getData()?number) />
64 <#assign linkName = myLayout.getName(locale)/>
65 <#if validator.isNotNull(web.EnlaceInternoNombre.data)>
66 <#assign linkName = "${web.EnlaceInternoNombre.data}"/>
67 </#if>
68 <li class="link internal-link fa fa-link" style="margin-right: 5px;">
69 <a href="${web.getFriendlyUrl()}" onclick="this.target='_blank'">${linkName}</a>
70 </li>
71 </#list>
72 </ul>
73 </div>
74 </#if>
75 </#if>
76 </div>
77 </div>
78 <#if Documentos.Documento.getSiblings()?has_content??>
79 <#list Documentos.Documento.getSiblings() as doc>
80 <#assign fileEntry = dlTool.getDLFileEntryByPath(doc.getData()) !/>
81 <#if validator.isNotNull(fileEntry)>
82
83 <#assign fileName = fileEntry.getTitle()/>
84 <#if doc.NombreDocumento.data!="">
85 <#assign fileName = doc.NombreDocumento.data/>
86 </#if>
87
88 <div class="col-md-12 uxgl-horizontal-card">
89 <div class="document-wrapper card card-horizontal">
90 <div class="card-row">
91 <div class="card-col-field card-col-gutters">
92 <a class="document document-${fileEntry.getExtension()} big" href="${doc.data}" title="${fileName}" onclick="this.target='_blank' ">
93 <span class="hide-accessible">${fileName}</span>
94 </a>
95 </div>
96 <div class="card-col-content card-col-gutters">
97 <a href="${doc.data}" title="${fileName}" onclick="this.target='_blank' ">
98 <span class="normal text-capitalize">${fileName}</span>
99 </a>
100 </div>
101 </div>
102 </div>
103 </div>
104 </#if>
105 </#list>
106</#if>
107
108
109 <#assign htmlGallery = journalTool.getHTMLGallery(Galeria.Imagen.getSiblings(), 2, "gallery-thumbs") />
110 <#if validator.isNotNull(htmlGallery)>
111 ${htmlGallery}
112 </#if>
113
114</div>