Supply Chain & Warehouse Logistics Blog
Explore the Interlake Mecalux blog and learn more about the latest methods for warehouse space optimization, how to improve inventory management, automated material handling equipment & software.
An error occurred while processing the template.
Java method "com.mecalux.util.service.impl.MlxJournalHelperServiceImpl.getStructureFieldValues(com.liferay.journal.model.JournalArticle, String)" threw an exception when invoked on com.mecalux.util.service.impl.MlxJournalHelperServiceImpl object "com.mecalux.util.service.impl.MlxJournalHelperServiceImpl@4fcca02f"; see cause exception in the Java stack trace. ---- FTL stack trace ("~" means nesting-related): - Failed at: #assign articleValues = mlxJournalHel... [in template "20101#20128#3282439" at line 20, column 29] ----
1<#assign className = "blog" />
2
3<#if entries?has_content >
4
5 <#assign cdn = (mlxUrlUtilService.getCdn(groupId))!"" />
6
7 <#--MKTG-1196: US Date format -->
8 <#assign domain = themeDisplay.getPortalDomain() />
9 <#assign dateFormat = "dd MMM yyyy"/>
10 <#if (domain?contains("us")) || (domain?contains("interlake")) >
11 <#assign dateFormat = "MMMMMMMMM d, yyyy" />
12 </#if>
13
14 <div class="corporate--${className}--articles--container">
15 <ul class="corporate--${className}--articles--list">
16 <#list entries as curEntry >
17 <#assign article = mlxAssetHelperService.getJournalArticleByEntry(curEntry) />
18 <#assign articleUrl = mlxUrlUtilService.getUrlByJournalArticle(article,"${locale}", groupId)?string />
19 <li class="corporate--${className}--articles--list-item">
20 <#assign articleValues = mlxJournalHelperService.getStructureFieldValues(article, "${locale}") />
21 <#assign listSummaryArticle = (articleValues["list_summary"]?string)!"" />
22 <#assign contentSummary = "" />
23
24 <#if listSummaryArticle?has_content >
25 <#assign contentSummary = listSummaryArticle?truncate(200, ' ...') />
26 <#else>
27 <#assign sections = (articleValues["header"])!"" />
28
29 <#if sections?has_content>
30 <#assign item = sections[0] />
31 <#assign item1 = item["paragraph_title"][0] />
32 <#if item1["paragraph"][0]??>
33 <#assign contentSummary = item1["paragraph"][0]?truncate(200, ' ...') />
34 </#if>
35 </#if>
36
37 </#if>
38
39 <#assign contentSummary = contentSummary?replace("</?[^>]+/?>", "" , 'r') />
40
41 <#assign master = mlxMastersHelperService.getMasterNameByJournalArticle(article) />
42
43 <#assign titlealt = (mlxExpandoService.getExpandoValueForClass("com.liferay.document.library.kernel.model.DLFileEntry","mlxDocumentTitle",listImageFileEntry.getFileVersion().getFileVersionId()).getString(locale))!"" />
44 <#assign image = (articleValues["list_image"])!"{}" />
45 <#assign imageJSON = jsonFactoryUtil.createJSONObject(image) />
46 <#assign imageUUID = imageJSON.getString("uuid") />
47 <#assign articleImageUrl = mlxDocumentsHelperService.getDocumentUrlFromUUID(imageUUID, locale) />
48 <#assign urlParamConcat = articleImageUrl?contains("?")?then("&","?")>
49 <#assign nameArticle = (articleValues["name"]?string)!"" />
50
51 <#if titlealt == "">
52 <#assign titlealt = nameArticle />
53 </#if>
54
55 <article class="corporate--blog--articles--item">
56 <a href="${articleUrl}" class="corporate--blog--articles--item-link" data-track-event-category="H_Post_Body" data-track-event-label="|Blog|Detail|${master}">
57 <figure class="corporate--blog--articles--item-figure">
58 ${corporate.img(cdn+articleImageUrl+urlParamConcat+'imwidth=320', true, 'srcset="' + cdn + articleImageUrl + urlParamConcat + 'imwidth=320&imdensity=1 320w,' + cdn + articleImageUrl + urlParamConcat + 'imwidth=640&imdensity=1 640w"', 'sizes="(max-width: 640px) 50vw, 100vw"', 'alt="' + titlealt + '"', 'title="' + titlealt + '"', 'class="corporate--blog--articles--item-image"')}
59 </figure>
60 <h2 class="corporate--blog--articles--item-heading">
61 ${nameArticle}
62 </h2>
63 </a>
64 <span class="corporate--blog--articles--item-date">
65 <#assign public_date_Data = (articleValues["public_date"]?date["yyyy-MM-dd"]?long)!0 />
66
67 <#if (public_date_Data > 0) >
68 <#assign public_date_DateObj = dateUtil.newDate(public_date_Data) />
69 <#assign publicDate = dateUtil.getDate(public_date_DateObj, dateFormat, locale, timeZoneUtil.getTimeZone("UTC")) />
70 ${publicDate!}
71 </#if>
72 </span>
73 <p class="corporate--blog--articles--item-content">${contentSummary}</p>
74 </article>
75 </li>
76 </#list>
77 </ul>
78 </div>
79</#if>
— 8 Items per Page