Agenda
Atzealdea Olentzerori eskutitza!
Errorea gertatu da txantiloia prozesatzerakoan.
The following has evaluated to null or missing: ==> parts1[2] [in template "21222#21260#81933" at line 23, column 69] ---- Tip: It's the final [] step that caused this error, not those before it. ---- 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: ${parts1[2]} [in template "21222#21260#81933" at line 23, column 67] ----
1<#assign JournalArticleLocalService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService")>
2<#assign AssetCategoryService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetCategoryService")>
3<#assign article = JournalArticleLocalService.getArticle(groupId, .vars['reserved-article-id'].getData())>
4<#assign categories = AssetCategoryService.getCategories("com.liferay.journal.model.JournalArticle", article.getResourcePrimKey())>
5<#assign mota_class=""/>
6<#if mota?? && mota.getData()??>
7 <#assign mota_class=mota.getData()/>
8</#if>
9<div class="agenda-detalle ${mota_class}">
10 <div class="entradilla">${laburpena.getData()}</div>
11 <div class="fecha-categorias">
12 <div class="fechas">
13 <#assign hasieraData_DateObj = hasieraData.getData()>
14 <#assign parts = hasieraData_DateObj?split("-")>
15 <span class="fecha_wrapper">
16 <span class="dia">${parts[2]}</span>
17 <span class="mes"><@mes monthNum=parts[1]?number/></span>
18 </span>
19 <#if amaieraData.erakutsiAmaieraData.getData() == "true">
20 <#assign amaieraData_DateObj = amaieraData.getData()>
21 <#assign parts1 = amaieraData_DateObj?split("-")>
22 <span class="fecha_wrapper">
23 <span class="dia">${parts1[2]}</span>
24 <span class="mes"><@mes monthNum=parts[1]?number/></span>
25 </span>
26 </#if>
27 </div>
28
29 <div class="categorias">
30 <#assign first = true>
31 <#foreach category in categories>
32 <#if first == false> | </#if>
33 ${category.getTitle(locale)}
34 <#assign first = false>
35 </#foreach>
36 </div>
37
38 </div>
39 <hr>
40 <div class="desarrollo">
41 ${edukia.getData()}
42 </div>
43 <p> </p>
44 <p> </p>
45 <hr/>
46 <p> </p>
47</div>
48
49<#macro mes monthNum>
50 <#if monthNum == 1>
51 <#if locale == "es_ES"> ENE
52 <#else> URT
53 </#if>
54 <#elseif monthNum == 2>
55 <#if locale == "es_ES"> FEB
56 <#else> OTS
57 </#if>
58 <#elseif monthNum == 3>
59 <#if locale == "es_ES"> MAR
60 <#else> MAR
61 </#if>
62 <#elseif monthNum == 4>
63 <#if locale == "es_ES"> ABR
64 <#else> API
65 </#if>
66 <#elseif monthNum == 5>
67 <#if locale == "es_ES"> MAY
68 <#else> MAI
69 </#if>
70 <#elseif monthNum == 6>
71 <#if locale == "es_ES"> JUN
72 <#else> EKA
73 </#if>
74 <#elseif monthNum == 7>
75 <#if locale == "es_ES"> JUL
76 <#else> UZT
77 </#if>
78 <#elseif monthNum == 8>
79 <#if locale == "es_ES"> AGO
80 <#else> ABU
81 </#if>
82 <#elseif monthNum == 9>
83 <#if locale == "es_ES"> SEP
84 <#else> IRA
85 </#if>
86 <#elseif monthNum == 10>
87 <#if locale == "es_ES"> OCT
88 <#else> URR
89 </#if>
90 <#elseif monthNum == 11>
91 <#if locale == "es_ES"> NOV
92 <#else> AZA
93 </#if>
94 <#elseif monthNum == 12>
95 <#if locale == "es_ES"> DIC
96 <#else> ABE
97 </#if>
98 </#if>
99</#macro>