Client Insights - Hero Banner

Client insights

Title - White Papers

White Papers

Asset Publisher

An error occurred while processing the template.
The following has evaluated to null or missing:
==> curEntry.getAssetRenderer().getThumbnailPath(renderRequest)  [in template "20155#20195#28787" at line 90, column 29]

----
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 imageURL = curEntry.getAssetR...  [in template "20155#20195#28787" at line 90, column 9]
----
1<#assign saxReaderUtil = staticUtil["com.liferay.portal.kernel.xml.SAXReaderUtil"] /> 
2 
3<#assign PortalAssetRenderer = staticUtil["com.liferay.asset.kernel.model.AssetRenderer"] /> 
4<#assign DLAppLocalServiceUtil = staticUtil["com.liferay.document.library.kernel.service.DLAppLocalServiceUtil"] /> 
5<#assign FileVersion = staticUtil["com.liferay.portal.kernel.repository.model.FileVersion"] /> 
6<#assign StringPool = staticUtil["com.liferay.portal.kernel.util.StringPool"] /> 
7<#assign HttpUtil = staticUtil["com.liferay.portal.kernel.util.HttpUtil"] /> 
8<#assign HtmlUtil = staticUtil["com.liferay.portal.kernel.util.HtmlUtil"] /> 
9  
10<style type="text/css"> 
11 
12.aui body .section_container.most-recent-entries { 
13    margin-top: 80px; 
14
15 
16.aui body .section_container.most-recent-entries .asset-entry-wrapper { 
17    min-height: 250px; 
18    width: 24%; 
19    -moz-box-shadow: 2px 2px 4px rgba(0,0,0,0.25); 
20    -webkit-box-shadow: 2px 2px 4px rgba(0,0,0,0.25); 
21    box-shadow: 2px 2px 4px rgba(0,0,0,0.25); 
22    padding-left:0px; 
23
24 
25.aui body .section_container.most-recent-entries .asset-entry-wrapper .asset-image { 
26    width:100%; 
27
28 
29.aui body .section_container.most-recent-entries .asset-entry-wrapper .asset-image img { 
30    width:100%; 
31
32 
33.aui body .section_container.most-recent-entries .asset-entry-wrapper .asset-meta { 
34    text-align: left; 
35    padding: 20px; 
36    min-height: 160px; 
37
38 
39.aui body .section_container.most-recent-entries .asset-entry-wrapper .asset-entry-title { 
40    font-size: 14px; 
41    line-height: 20px; 
42    padding: 5px 0; 
43    min-height: 70px; 
44
45 
46.aui body .section_container.most-recent-entries .asset-entry-wrapper .asset-entry-read-more { 
47    text-transform: uppercase; 
48    font-weight: bold; 
49
50 
51.aui body .section_container.most-recent-entries .asset-entry-wrapper a.asset-entry-read-more:hover, 
52.aui body .section_container.most-recent-entries .asset-entry-wrapper a.asset-entry-read-more:focus { 
53    color: #58595b; 
54
55 
56@media (max-width: 767px) { 
57    .aui body .section_container.most-recent-entries .asset-entry-wrapper { 
58        margin: 25px 0; 
59        width: 100%; 
60
61    .aui body .section_container.most-recent-entries .asset-entry-wrapper .asset-image { 
62        width: 100%; 
63
64
65 
66.aui body .most-recent-entries .asset-entry-wrapper .asset-image { 
67    min-height:auto; 
68
69 
70</style> 
71 
72<section> 
73<div class="section_container most-recent-entries"> 
74<div class="row" style="text-align: center;"> 
75 
76<#if entries?has_content> 
77    <#list entries as curEntry> 
78     
79        <#assign assetRenderer = curEntry.getAssetRenderer() /> 
80        <#assign entryTitle = htmlUtil.escape(assetRenderer.getTitle(locale)) /> 
81        <#assign viewURL = assetPublisherHelper.getAssetViewURL(renderRequest, renderResponse, curEntry) /> 
82        <#attempt> 
83            <#assign viewURLText = curEntry.getDescription()  /> 
84        <#recover> 
85            <#assign viewURLText = "View Article" /> 
86        </#attempt> 
87        <#if !viewURLText?has_content > 
88                <#assign viewURLText = "View Article" /> 
89        </#if> 
90        <#assign imageURL = curEntry.getAssetRenderer().getThumbnailPath(renderRequest) /> 
91 
92        <#if assetRenderer.getType()=="document"> 
93            
94            <#assign dlFileEntryId = assetRenderer.getClassPK() /> 
95            <#assign fileEntry = DLAppLocalServiceUtil.getFileEntry(dlFileEntryId)  /> 
96            <#assign fileVersion = fileEntry.getLatestFileVersion() /> 
97            <#assign viewURL = themeDisplay.getPortalURL() + themeDisplay.getPathContext() + "/documents/" + fileEntry.getGroupId() + StringPool.SLASH + fileEntry.getFolderId() + StringPool.SLASH + HttpUtil.encodeURL(HtmlUtil.unescape(fileEntry.getTitle())) + StringPool.SLASH + fileEntry.getUuid() + "?version=" + fileVersion.getVersion() /> 
98            <#assign imageURL = "/documents/20626/0/Default+Image/80372533-a2bd-4e56-a00b-7718918fc307?t=1453491169000" /> 
99            <#assign viewURLText = "View Document" /> 
100            <#assign displayDate = curEntry.getCreateDate() /> 
101        <#else> 
102            <#assign displayDate = curEntry.getPublishDate() /> 
103            <#if !displayDate?has_content > 
104                <#assign displayDate = curEntry.getCreateDate() /> 
105            </#if> 
106        </#if> 
107 
108        <#if curEntry.getAssetRenderer().getArticle().getStructureId()=="95053"> 
109            <#assign className = assetRenderer.getClassName() /> 
110            <#if className == "com.liferay.portlet.journal.model.JournalArticle" > 
111                <#assign journalArticle = assetRenderer.getArticle() /> 
112                <#assign document = saxReaderUtil.read(journalArticle.getContent()) /> 
113                <#assign rootElement = document.getRootElement() /> 
114                <#list rootElement.elements() as dynamicElement > 
115                    <#if "Documents_and_Media1996" == dynamicElement.attributeValue("name") > 
116                        <#assign Documents_and_Media1996 = dynamicElement.element("dynamic-content").getText() /> 
117                        <#assign viewURL = themeDisplay.getPortalURL() + "/ipc-insights?u=" + themeDisplay.getPortalURL() + Documents_and_Media1996 /> 
118                    </#if>                     
119                </#list> 
120            </#if> 
121        </#if> 
122 
123        <#if curEntry.getAssetRenderer().getArticle().getStructureId()=="29981"> 
124             <#assign viewURL = themeDisplay.getPortalURL() + "/videos/-/asset_publisher/eDFG22BqJooL/content/" + curEntry.getAssetRenderer().getArticle().getUrlTitle() /> 
125        </#if> 
126 
127 
128 
129        <#assign dateFormat = "MMMMM dd, yyyy" /> 
130         
131        <div class="col-md-3 asset-entry-wrapper"> 
132            <div class="asset-image"> 
133                <img src="${imageURL}"/> 
134            </div> 
135             
136            <div class="asset-meta"> 
137                <#if displayDate?has_content > 
138                <div><strong>${dateUtil.getDate(displayDate, dateFormat, locale)}</strong></div> 
139                </#if> 
140                <div class="asset-entry-title">${entryTitle}</div> 
141                <a class="asset-entry-read-more" href="${viewURL}" <#if curEntry.getAssetRenderer().getArticle().getStructureId()=="95053">target="_blank"</#if>>${viewURLText}</a> 
142            </div> 
143        </div> 
144         
145    </#list> 
146<#else> 
147    No items found. 
148</#if> 
149 
150</div> 
151</div> 
152</section> 

social-media-icons