Во время обработки запрошенного шаблона произошла ошибка...
The following has evaluated to null or missing: ==> DLFileEntryUtil.fetchDLFileEntryByUuidAndGroupId( uuid, group_id) [in template "18771710#18771743#ARTICLE" at line 33, column 39] ---- 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: #assign imagenIGImage = DLFileEntryUt... [in template "18771710#18771743#ARTICLE" at line 33, column 15] ----
1<#assign url="">
2
3<#assign DLFileEntryUtil= serviceLocator.findService("com.liferay.document.library.kernel.service.DLFileEntryLocalService")>
4
5
6<h2>${.vars["reserved-article-title"].data}</h2>
7<#--Slider -->
8<#if imatge.imatgeUrl.getData()?has_content || imatge.imatgeUrl.urlExterna.getData()?has_content>
9 <#assign i=0>
10 <div id="carousel-${.vars["reserved-article-id"].data}" class="carousel slide" data-ride="carousel">
11 <ol class="carousel-indicators">
12 <#list imatge.getSiblings() as item>
13 <li data-target="#carousel-${.vars["reserved-article-id"].data}" data-slide-to="${i}"
14 <#if i==0> class="active" </#if>></li>
15 <#assign i= i+1>
16 </#list>
17 </ol>
18 <#assign i=0>
19 <div class="carousel-inner" role="listbox">
20 <#list imatge.getSiblings() as item>
21 <div class="carousel-item <#if i==0> active <#assign i=1> </#if>">
22 <#if item.imatgeUrl.getData()?has_content>
23 <#assign url= item.imatgeUrl.getData()>
24 <#if stringUtil.contains(url,"?")>
25 <#assign url= stringUtil.split( url,"?").get(0)>
26 </#if>
27 <#assign parts= stringUtil.split( url,"/")>
28 <#if parts?size gt 2>
29 <#assign group_id= getterUtil.getLong( parts[2])>
30 <#assign folder_id= getterUtil.getLong( parts[3])>
31 <#assign doc_name= staticUtil['com.liferay.portal.kernel.util.HttpComponentsUtil'].decodeURL( parts[4])>
32 <#assign uuid= getterUtil.getString( parts[5])>
33 <#assign imagenIGImage= DLFileEntryUtil.fetchDLFileEntryByUuidAndGroupId( uuid, group_id)>
34 </#if>
35 <#else>
36 <#if item.imatgeUrl.urlExterna.getData()?has_content>
37 <#assign url= item.imatgeUrl.urlExterna.getData()>
38 </#if>
39 </#if>
40
41 <#assign titol="">
42 <#if imagenIGImage.getDescription()?has_content>
43 <#assign titol= htmlUtil.escape( imagenIGImage.getDescription())>
44 </#if>
45
46 <#--codi del slide -->
47 <img src="${url}" alt="${htmlUtil.stripHtml(stringUtil.trim(item.imatgeDescripcio.getData()))}" title="${titol}" style="max-height:350px;width:100%" data-toggle="tooltip" data-placement="bottom" data-html="true">
48 <div class="carousel-caption">
49 ${i}tem.imatgeDescripcio.getData()
50 </div>
51 <#--fi codi -->
52 </div>
53 </#list>
54 </div>
55 <#--Controls -->
56 <a class="left carousel-control-prev" href="#carousel-${.vars["reserved-article-id"].data}" data-slide="prev">
57 <i class="icon-ui-arrow-left"></i>
58 </a>
59 <a class="right carousel-control-next" href="#carousel-${.vars["reserved-article-id"].data}" data-slide="next">
60 <i class="icon-ui-arrow-right"></i>
61 </a>
62 </div>
63 <br/>
64</#if>
65<#-- Fi slider -->
66<div class="text-justify welcome-banner padding1em" style="margin-bottom:20px">
67${entradeta.getData()}
68</div>
69<#if descripcio.getData()?has_content>
70<div class="text-justify">
71 ${descripcio.getData()}
72</div>
73</#if>
74
75<#assign i=0>
76
77<#list mesInfo.getSiblings() as item>
78 <#if item.mesInfoUrl.getData()?has_content>
79 <#if i==0>
80 <h3><br/><@liferay.language key="parc.activitat.mesurl"/>:</h3>
81 <ul>
82 <#assign i=1>
83 </#if>
84 <li>
85 <a href="${i}tem.mesInfoUrl.getData()" title="${i}tem.mesInfoText.getData()" target="_blank">
86 ${i}tem.mesInfoText.getData()
87 </a>
88 </li>
89 </#if>
90</#list>
91<#if i==1>
92 </ul>
93</#if>