Editor de continguts

S'ha produït un error mentre es processava la plantilla.
The following has evaluated to null or missing:
==> request.getParameter('resourcePK')  [in template "10154#10192#22570302" at line 18, column 23]

----
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 resourcePK = request.getParam...  [in template "10154#10192#22570302" at line 18, column 1]
----
1<#-- Services --> 
2<#assign DLFileEntryLocalService = serviceLocator.findService("com.liferay.document.library.kernel.service.DLFileEntryLocalService") /> 
3<#assign assetEntryLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetEntryLocalService") /> 
4<#assign journalArticleLocalService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService") /> 
5<#assign serviceContext = staticUtil["com.liferay.portal.kernel.service.ServiceContextThreadLocal"].getServiceContext()> 
6<#assign EduCaixaUtilsService = serviceLocator.findService("com.educaixa.utils.service.EduCaixaUtilsService") /> 
7<#assign LiteralsToolsServiceUtil = serviceLocator.findService("com.aqua.literals.util.LiteralsToolsService")/> 
8 
9<#-- Variables Globales --> 
10<#assign language = themeDisplay.getLocale()/> 
11<#assign groupId = themeDisplay.getScopeGroupId()/> 
12<#assign theme_color = themeDisplay.getColorSchemeId()/> 
13<#assign is_signed_in = themeDisplay.isSignedIn()/> 
14<#assign group_Id = EduCaixaUtilsService.getContentGroupId()/> 
15<#assign companyId = themeDisplay.getCompanyId()/> 
16<#assign userId = themeDisplay.getUserId()/> 
17 
18<#assign resourcePK = request.getParameter('resourcePK') /> 
19 
20<#assign article = journalArticleLocalService.getLatestArticle(resourcePK?number, 0) /> 
21<#assign document = saxReaderUtil.read(article.getContentByLocale(language)) /> 
22<#assign jaUrlTitle = article.getUrlTitle() /> 
23<#assign url = themeDisplay.getPortalURL() /> 
24<#assign title = document.valueOf("//dynamic-element[@name='title']/dynamic-content/text()") /> 
25 
26<div class="thankProgram"> 
27    <span class="imageAccessProgram"></span> 
28    <h3 class="accessProgram margin-top-10"> 
29        ${LiteralsToolsServiceUtil.getLiteral(groupId, language, "com.educaixa.successful.acces.program")} 
30        ${title}! 
31    </h3> 
32    <p class="desAccessProgram">${LiteralsToolsServiceUtil.getLiteral(groupId, language, "com.educaixa.description.acces.program")}</p> 
33    
34   <div class="thankBotonCenter"> 
35        <a onclick="javascript:redirectPhysicalMat(${article.getResourcePrimKey()})" class="boton large boton-educaixa width-300 margin-top-10 margin-bottom-10">${LiteralsToolsServiceUtil.getLiteral(groupId, language, "com.educaixa.request.acces.program")}</a> 
36        <a href="${url}/-/${jaUrlTitle}"  class="boton large boton-educaixa width-300 margin-top-10 margin-bottom-10 requestWhite">${LiteralsToolsServiceUtil.getLiteral(groupId, language, "com.educaixa.return.acces.program")}</a> 
37    </div> 
38</div> 
39 
40 
41<style> 
42     
43    .accessProgram{ 
44          font-size: 20px; 
45          font-weight: 900; 
46          font-style: normal; 
47          font-stretch: normal; 
48          line-height: 1.4; 
49          letter-spacing: normal; 
50          text-align: center; 
51          text-transform: uppercase; 
52
53    .imageAccessProgram{ 
54        content: url('/o/edu-caixa-theme/images/CONTENT_24/svg/programa_03_programas.svg'); 
55        display: block; 
56        margin: auto; 
57        width: 30px; 
58        height: 30px; 
59
60 
61    .desAccessProgram{ 
62          margin: 50px 0 20px 0; 
63          font-size: 14px; 
64          font-weight: normal; 
65          font-style: normal; 
66          font-stretch: normal; 
67          line-height: 1.43; 
68          letter-spacing: normal; 
69          text-align: center; 
70          color: #607d8b; 
71
72    .boton.large.boton-educaixa.width-300.margin-top-10.margin-bottom-10{ 
73        text-align: center; 
74        margin: auto; 
75        display: inline-block; 
76        margin-right: 1rem; 
77
78    .boton.large.boton-educaixa.width-300.margin-top-10.margin-bottom-10.requestWhite { 
79        border: 1px solid #0091cc!important; 
80        background-color: white!important; 
81        color: #0091cc!important; 
82         
83
84     
85    .thankBotonCenter{ 
86        text-align: center;     
87
88     
89    @media only screen and (min-width: 1024px) { 
90        div.thankProgram{ 
91            margin: 3rem 20rem; 
92        }     
93
94    @media only screen and (max-width: 1023px) { 
95         div.thankProgram{ 
96            margin: 2rem 3rem; 
97
98        .boton.large.boton-educaixa.width-300.margin-top-10.margin-bottom-10{ 
99            display: block; 
100
101
102     
103     
104     
105     
106</style>