Publicador de contenidos

Se ha producido un error al procesar 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<#assign downloadDocumentZip = document.valueOf("//dynamic-element[@name='downloadDocumentZip']/dynamic-content/text()") /> 
26 
27<div class="thankProgram"> 
28    <span class="imageAccessProgram"></span> 
29    <h3 class="accessProgram margin-top-10"> 
30        ${LiteralsToolsServiceUtil.getLiteral(groupId, language, "com.educaixa.successful.acces.program")} 
31        ${title}! 
32    </h3> 
33    <p class="desAccessProgram">${LiteralsToolsServiceUtil.getLiteral(groupId, language, "com.educaixa.description.acces.program")}</p> 
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="${downloadDocumentZip}" class="boton large boton-educaixa width-300 margin-top-10 margin-bottom-10">${LiteralsToolsServiceUtil.getLiteral(groupId, language, "com.educaixa.request.acces.program")}</a> 
37        <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> 
38    </div> 
39</div> 
40 
41 
42<style> 
43     
44    .accessProgram{ 
45          font-size: 20px; 
46          font-weight: 900; 
47          font-style: normal; 
48          font-stretch: normal; 
49          line-height: 1.4; 
50          letter-spacing: normal; 
51          text-align: center; 
52          text-transform: uppercase; 
53
54    .imageAccessProgram{ 
55        content: url('/o/edu-caixa-theme/images/CONTENT_24/svg/programa_03_programas.svg'); 
56        display: block; 
57        margin: auto; 
58        width: 30px; 
59        height: 30px; 
60
61 
62    .desAccessProgram{ 
63          margin: 50px 0 20px 0; 
64          font-size: 14px; 
65          font-weight: normal; 
66          font-style: normal; 
67          font-stretch: normal; 
68          line-height: 1.43; 
69          letter-spacing: normal; 
70          text-align: center; 
71          color: #607d8b; 
72
73    .boton.large.boton-educaixa.width-300.margin-top-10.margin-bottom-10{ 
74        text-align: center; 
75        margin: auto; 
76        display: inline-block; 
77        margin-right: 1rem; 
78
79    .boton.large.boton-educaixa.width-300.margin-top-10.margin-bottom-10.requestWhite { 
80        border: 1px solid #0091cc!important; 
81        background-color: white!important; 
82        color: #0091cc!important; 
83         
84
85     
86    .thankBotonCenter{ 
87        text-align: center;     
88
89     
90    @media only screen and (min-width: 1024px) { 
91        div.thankProgram{ 
92            margin: 3rem 20rem; 
93        }     
94
95    @media only screen and (max-width: 1023px) { 
96         div.thankProgram{ 
97            margin: 2rem 3rem; 
98
99        .boton.large.boton-educaixa.width-300.margin-top-10.margin-bottom-10{ 
100            display: block; 
101
102
103     
104     
105     
106     
107</style>