Client Insights - Hero Banner

Client insights

Asset Publisher

An error occurred while processing the template.
The following has evaluated to null or missing:
==> curEntry.getAssetRenderer().getArticle  [in template "20155#20195#27508" at line 104, column 14]

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

Most Recent - Title

Most Recent

Asset Publisher

February 28, 2018
The Budget introduced changes that may affect your individual & family finances.
View Infographic
November 16, 2016
ADVISOR.ca - What is a good batting average when choosing the right investment manager?
Read More
November 01, 2016
InvestmentExecutive.com - Your guiding principle should reflect your beliefs
Read More
October 19, 2016
Investment Executive Print and InvestmentExecutive.com - Withdrawing Retirement Assets
Read More
April 25, 2016
Take Control of Your Retirement Income
View Infographic
March 24, 2016
Keys Reasons to Invest in a TFSA
Read the Report
March 23, 2016
2016-2017 Federal Budget Highlights Infographic
View Infographic
February 17, 2016
2016 Tax Changes Report
VIEW REPORT
February 02, 2016
Lower RRIF Minimum Withdrawal Rates for 2015
View Report
February 02, 2016
Say Yes! to Tax-Free Income
Watch the Video
January 04, 2016
Is your RRSP on the back burner?
WATCH THE VIDEO
October 02, 2015
A Tax Advantage Solution for Investors with a Disability
Watch the Video
October 01, 2015
Retirement Income Planning As the Ground Shifts, Financial Advice is Key
Download White Paper
October 01, 2015
Do You Have a Retirement Income Plan?
View Report
September 17, 2015
Class is in Session: Keeping Pace with Rising Education Costs
View Report
September 02, 2015
Converting Your RRSPs to a RRIF Account at 71
Watch the Video
August 04, 2015
Help your Child Graduate Debt-free
Watch the Video
August 20, 2013
Investment Planning Counsel Inc. to acquire Independent Planning Group Inc.
Read Press Release
November 01, 2010
Investment Planning Counsel completes acquisition of Titan Funds
Read Press Release
November 01, 2010
Investment Planning Counsel completes acquisition of Partners In Planning
Read Press Release

social-media-icons

Button Anchor - Insights

Sign up for the E-Wealth Report

SUBSCRIBE TO THE E-WEALTH REPORT

SIGN UP

Receive monthly updates on current financial planning, lifestyle news and tips through our
E-Wealth Report e-newsletter.

Calculators