Updates Banner

Midwest Updates

Updates

Asset Publisher

An error occurred while processing the template.
The following has evaluated to null or missing:
==> blogsEntryLocalService.fetchBlogsEntry(blogEntryId?number)  [in template "4621425#4621464#6265650" at line 66, column 25]

----
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 curBlogEntry = blogsEntryLoca...  [in template "4621425#4621464#6265650" at line 66, column 1]
----
1<#assign blogsEntryLocalService = serviceLocator.findService("com.liferay.blogs.service.BlogsEntryLocalService")> 
2<#assign favoriteItemLocalService = serviceLocator.findService("com.liferay.uss.common.service.service.FavoriteItemLocalService")> 
3<#assign blogEntryId = "" > 
4<#assign blogsPortlet_blogEntryId = "" > 
5<#if renderRequest.getParameter("blogEntryId")??> 
6<#assign blogEntryId =  renderRequest.getParameter("blogEntryId")?string /> 
7<#elseif themeDisplay.getURLCurrent()?contains("?blogEntryId=") > 
8<#assign blogEntryId = themeDisplay.getURLCurrent()?split("?blogEntryId=")[1] > 
9</#if> 
10 
11<#if blogEntryId == ""> 
12<section> 
13    <div class=""> 
14		<div class="card-employee-section">   
15			<#if favoriteItemLocalService.getBlogsByCompanyId(themeDisplay.getCompanyId(), themeDisplay.getScopeGroupId())??> 
16			<#assign blogEntries = favoriteItemLocalService.getBlogsEntries(themeDisplay.getCompanyId(), -1, -1) > 
17			</#if> 
18			<#assign count = 0 > 
19			<#if blogEntries?has_content> 
20			 
21			<#assign blogEntries = blogEntries?sort_by("displayDate")?reverse > 
22			<#list blogEntries as curBlogEntry > 
23	 
24			<#if curBlogEntry.getCoverImageCaption() == "true"> 
25			<#if count = 0 || count % 3 = 0 >                
26			<div class="row"> 
27				</#if>      
28				<#assign src = "" >  
29				<#if curBlogEntry.getCoverImageURL(themeDisplay)??> 
30				<#assign src = curBlogEntry.getCoverImageURL(themeDisplay) >  
31				<#else> 
32				<#assign src = curBlogEntry.getCoverImageURL() >  
33				</#if> 
34				<#assign viewEntryPortletURL = renderResponse.createRenderURL() /> 
35				${viewEntryPortletURL.setParameter("urlTitle", curBlogEntry.getUrlTitle())}        
36				${viewEntryPortletURL.setParameter("blogEntryId", curBlogEntry.getEntryId()?string)} 
37				<div class="col-12 col-lg-4 pr-md-2 pl-md-2"> 
38				<!-- Inline Edit Start --> 
39 
40				<!-- Inline Edit end --> 
41					<div class="card-employee">                                                      
42						<div class="truncate-lines-1 h4">${htmlUtil.escape(curBlogEntry.getTitle())} </div> 
43						<p class="news-date text-sm mb-2">${curBlogEntry.getDisplayDate()?date}</p> 
44						<div class="aspect-ratio aspect-ratio-8-to-3 mb-3"  style="background-image:url(https://midwest.uss.com/documents/4621460/4849814/watermark.png/4cff3fe1-d71c-153d-c87c-117ecb0d4b6a?t=1686826360898);background-repeat: no-repeat;background-size: cover;background-position: center;"> 
45							<#if src?? && src !=""> 
46								<img alt="thumbnail" alt="${htmlUtil.escape(curBlogEntry.getTitle())}" class=" aspect-ratio-item-center-middle aspect-ratio-item-fluid lazy-load" datasrc="${src}"> 
47							</#if> 
48						</div> 
49						<p class="card-text truncate-lines-3">  ${stringUtil.shorten(htmlUtil.stripHtml(curBlogEntry.getContent()), 250)}</p> 
50						<a href="${viewEntryPortletURL.toString()}" class="card-link h6">Read More</a> 
51					</div> 
52				</div>                         
53				<#if (count + 1) % 3 = 0>                          
54			</div> 
55			</#if> 
56			<#assign count = count+1 > 
57			</#if> 
58			 
59			</#list>  
60			 
61			</#if> 
62        </div> 
63    </div> 
64</section> 
65<#else> 
66<#assign curBlogEntry = blogsEntryLocalService.fetchBlogsEntry(blogEntryId?number)> 
67<section class="uss-section body-bg page-section pb-0 uss-section-update-details"> 
68    <div class="container"> 
69	    <div class="row">                                             
70            <div class="col-12 "> 
71                <#assign src = "" >  
72                <#if curBlogEntry.getCoverImageURL(themeDisplay)??> 
73				<#assign src = curBlogEntry.getCoverImageURL(themeDisplay) >  
74				<#else> 
75				<#assign src = curBlogEntry.getCoverImageURL() >  
76				</#if>	 
77				<#assign shareurl = themeDisplay.getPortalURL()+themeDisplay.getLayout().getFriendlyURL()+"/-/blogs/"+curBlogEntry.getUrlTitle()> 
78 
79				<div class="truncate-lines-1 h4">${htmlUtil.escape(curBlogEntry.getTitle())} 
80				</div> 
81				<p class="news-date text-sm mb-2">${curBlogEntry.getDisplayDate()?date}</p>                               
82				<#if src?? && src !=""> 
83				<div class="aspect-ratio aspect-ratio-8-to-3 mb-3" style="background-image:url(https://midwest.uss.com/documents/4621460/4849814/watermark.png/4cff3fe1-d71c-153d-c87c-117ecb0d4b6a?t=1686826360898);background-repeat: no-repeat;background-size: cover;background-position: center;">              
84				<img class="nitesh aspect-ratio-item-center-middle aspect-ratio-item-fluid" alt="${htmlUtil.escape(curBlogEntry.getTitle())}" data-fileentryid="" src="${src}"> 
85				</div> 
86				</#if>				 
87				<p> ${curBlogEntry.getContent()}</p> 
88                                                                                                                                 
89            </div>                    
90        </div> 
91    </div>   
92</section>	 
93</#if>