News and Events Details Banner

News and Media

Länkstig

Innehållspublicerare

Content parameter is missing or empty.

Innehållspublicerare

Fel uppstod under bearbetning av mallen.
The following has evaluated to null or missing:
==> decodedTitle  [in template "20096#20121#885314" at line 29, column 29]

----
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 CurrenturlTitle = decodedTitl...  [in template "20096#20121#885314" at line 29, column 2]
----
1<!-- recent news slider section start  --> 
2<#assign AssetEntryLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetEntryLocalService")/> 
3<#assign JournalArticleLocalService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService")/> 
4<#assign urlTitle = ""/> 
5<#assign CurrenturlTitle = "" /> 
6 
7<#assign currentURL = themeDisplay.getURLCurrent()> 
8 
9<#-- Check if the URL contains query parameters --> 
10<#if currentURL?contains("?")> 
11    <#assign queryParams = currentURL?split("?")[1]> 
12    <#assign params = queryParams?split("&")> 
13 
14    <#-- Loop through parameters to find the 'content' parameter --> 
15    <#assign title = ""> 
16    <#list params as param> 
17        <#if param?contains("content=")> 
18            <#assign urlTitle = param?substring(param?index_of("content=") + 6)?split("=")[1]> 
19							 <#assign decodedTitle = urlTitle?replace("%20", " ")> 
20    <#assign decodedTitle = decodedTitle?replace("%09", " ")> 
21    <#assign decodedTitle = decodedTitle?replace("%21", "!")> 
22    <#assign decodedTitle = decodedTitle?replace("%22", "\"")> 
23    <#assign decodedTitle = decodedTitle?replace("%23", "#")> 
24    <#assign decodedTitle = decodedTitle?replace("%24", "$")> 
25    <#assign decodedTitle = decodedTitle?replace("%25", "%")> 
26        </#if> 
27    </#list> 
28 </#if> 
29 <#assign CurrenturlTitle = decodedTitle?trim> 
30  
31 
32<section class="rcn-slider-wrap overflowXhidden" data-aos="fade-up"> 
33  <div class="container"> 
34		 
35		<div class="title-arrows-wrap"> 
36			<h2 class="bigHeading" data-aos="fade-up" data-aos-anchor-placement="bottom-bottom"> 
37					<#assign article= JournalArticleLocalService.getArticleByUrlTitle(themeDisplay.getScopeGroupId(), CurrenturlTitle) /> 
38	         
39							</h2> 
40		   <div class="swiperArrow" data-aos="fade-up" data-aos-anchor-placement="bottom-bottom" data-aos-duration="800"> 
41          <div class="swiper-button-prev"> 
42            <span class="swiper-rectangle"><img src="/o/diez-theme/images/swiper-rectangle.svg" alt="" /></span> 
43            <span class="swiper-arrow"><img src="/o/diez-theme/images/swiper-arrow-left.svg" alt="" /></span> 
44          </div> 
45          <div class="swiper-button-next"> 
46            <span class="swiper-rectangle"><img src="/o/diez-theme/images/swiper-rectangle.svg" alt="" /></span> 
47            <span class="swiper-arrow"><img src="/o/diez-theme/images/swiper-arrow-right.svg" alt="" /></span> 
48          </div> 
49        </div> 
50		</div> 
51    
52    <div class="rcnslider"> 
53      <div class="swiper mySwiper"> 
54         
55       
56 
57      
58		 <div class="swiper-wrapper remainSession"> 
59			 
60          <#if entries?has_content> 
61	<#list entries as curEntry> 
62			 
63			<#assign assetRenderer = curEntry.getAssetRenderer() 
64               journalArticle = assetRenderer.getAssetObject() /> 
65		 <#assign webcontentTitle = journalArticle.getUrlTitle() /> 
66	<#if CurrenturlTitle?? && CurrenturlTitle != "">	 
67		<#if webcontentTitle?trim?lower_case != CurrenturlTitle?trim?lower_case>  
68			     <div class="swiper-slide "> 
69		 
70                <@liferay_journal["journal-article"] 
71                    articleId=journalArticle.getArticleId() 
72                    ddmTemplateKey=journalArticle.getDDMTemplateKey() 
73                    groupId=journalArticle.getGroupId() 
74                /> 
75	        </div>  
76		 
77			</#if> 
78		  
79<#else> 
80  <p>Content parameter is missing or empty.</p> 
81</#if> 
82 
83				 
84	</#list> 
85</#if> 
86      	  
87     		 </div>     
88         
89 
90        <div class="swiper-scrollbar"></div> 
91 
92      </div> 
93    </div> 
94		 
95  </div> 
96</section> 
97<!-- recent news slider section end  -->