Stories - CEMEX USA
An error occurred while processing the template.
Java method "com.sun.proxy.$Proxy198.getCategory(long)" threw an exception when invoked on com.sun.proxy.$Proxy198 object "com.liferay.portlet.asset.service.impl.AssetCategoryServiceImpl@383b4b10"; see cause exception in the Java stack trace. ---- FTL stack trace ("~" means nesting-related): - Failed at: #assign category = assetCategoryServi... [in template "20116#20152#45573384" at line 15, column 21] ----
1<#if entries?has_content>
2<div class="cemex-media-center">
3 <div id="media-filter">
4 <div id="media-active-selection-container">
5 <div class="active-selector">
6 <#if serviceLocator??>
7 <#assign
8 assetCategoryService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetCategoryService")/>
9
10 <#if renderRequest.getParameter("categoryId")??>
11 <#assign categoryId = renderRequest.getParameter("categoryId") />
12 </#if>
13
14 <#if categoryId??>
15 <#assign category = assetCategoryService.getCategory(categoryId?number)/>
16 <div class="active-selection"><span class="active-selection-label">${category.getTitle(locale)}</span></div>
17 </#if>
18 </#if>
19 </div>
20 </div>
21
22 <div id="media-filters-container">
23 <#list entries as entry>
24 <#assign categories = entry.getCategories() />
25 <@displayMenu categories=categories/>
26 </#list>
27 </div>
28 </div>
29</div>
30
31</#if>
32
33<#macro displayMenu categories>
34 <#if categories?has_content>
35 <#list categories as category>
36 <#if category.isRootCategory()>
37 <div class="filter-selector">
38 <div class="active-selection"><span class="active-selection-label">${category.getTitle(locale)}</span><i class="fa fa-angle-double-right" aria-hidden="true"></i></div>
39 <div class="selection-options">
40 <#if serviceLocator??>
41 <#assign
42 assetCategoryService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetCategoryService")
43 childCategories = assetCategoryService.getChildCategories(category.getCategoryId())
44 />
45
46 <@displayCategories categories=childCategories?reverse />
47 <#else>
48 <#-- It's needed to remove serviceLocator from reservedVariables -->
49 <#-- https://web.liferay.com/de/community/forums/-/message_boards/view_message/73386692#_19_message_74729187 -->
50 <ul><li>No content</li></ul>
51 </#if>
52 </div>
53 </div>
54 </#if>
55 </#list>
56 </#if>
57</#macro>
58
59<#macro displayCategories categories>
60 <#if categories?has_content>
61 <ul>
62 <#list categories as category>
63 <#assign categoryURL = renderResponse.createRenderURL() />
64 ${categoryURL.setParameter("resetCur", "true")}
65 ${categoryURL.setParameter("categoryId", category.getCategoryId()?string)}
66 <a href="${categoryURL}">
67 <li>
68 ${category.getTitle(locale)}
69 </li>
70 </a>
71 </#list>
72 </ul>
73 </#if>
74</#macro>
NRMCA awards CEMEX USA for outstanding community and environmental efforts
More
Two CEMEX USA plants awarded by PCA for safety and community efforts
More
CEMEX USA to donate 101 acres of land for California State Park
More
CEMEX provides concrete donation for new Mexican Consulate in Houston
CEMEX today announced it donated more than $30,000 worth of ready-mix concrete to support the construction of the newly-opened and inaugurated facility for the Mexican Consulate in Houston, Texas.
More
CEMEX Alico Quarry receives Wildlife Habitat Council Conservation Certification
More
CEMEX USA aims to get Victorville students interested in manufacturing careers
More