An error occurred while processing the template.
Error on line 1, column 1 in 20154#20194#28754
utilLocator.findUtil('csfactory-corporate-template-theme', 'com.bpc.csfactory.corporate.template.theme.ThemeHelper') is undefined.
It cannot be assigned to themeHelperUtil
1<#assign themeHelperUtil = utilLocator.findUtil('csfactory-corporate-template-theme', 'com.bpc.csfactory.corporate.template.theme.ThemeHelper') /> 
2<#assign selectedCategories = themeHelperUtil.categoryIds(paramUtil.getString(request, "categoryId")) /> 
3 
4<#if entries?has_content> 
5    <div class="wrapper"> 
6        <div class="search-block"> 
7			<p>${languageUtil.get(locale, "search.by")}</p> 
8			<#list entries as curVocabulary> 
9			<#assign categories = curVocabulary.getCategories()> 
10 
11				<#if categories?has_content> 
12 
13					<#assign otherCategories = themeHelperUtil.excludeCurrentVocabularyCategoryIds(curVocabulary.getVocabularyId(),selectedCategories)/> 
14 
15					<#switch curVocabulary.name> 
16						<#case "News-type"> 
17							 <@displayCategories categories=categories otherCategoriesParam=otherCategories placeholder="${languageUtil.get(locale, 'select.type')}"/> 
18							 <#break> 
19						<#case "News-year"> 
20							<@displayCategories categories=categories otherCategoriesParam=otherCategories placeholder="${languageUtil.get(locale, 'select.year')}"/> 
21							<#break> 
22						<#case "News-tag"> 
23							<@displayCategories categories=categories otherCategoriesParam=otherCategories placeholder="${languageUtil.get(locale, 'select.tag')}" /> 
24							<#break> 
25						<#default> 
26							<#break> 
27					</#switch> 
28				</#if>       
29			</#list> 
30		</div> 
31    </div> 
32</#if> 
33 
34<#macro displayCategories categories categories otherCategoriesParam placeholder> 
35    <#if categories?has_content> 
36        <#assign capturedOutput="" /> 
37        <#assign categoryTitle="" />     
38        <div class="select-list"> 
39			<ul> 
40			    <li>     
41			        <#assign categoryURL = renderResponse.createRenderURL()> 
42			        ${categoryURL.setParameter("resetCur", "true")} 
43			        <#assign selected = true/> 
44			        <#if selected > 
45						<li class="active"> 
46						${categoryURL.setParameter("categoryId", otherCategoriesParam)} 
47						<#assign capturedOutput> 
48							<a class="toggle-list" href="#"><span>...</span></a>                  
49						</#assign> 
50					<#else> 
51						<li> 
52						${categoryURL.setParameter("categoryId", otherCategoriesParam)} 
53					</#if> 
54			        <a title="..." href="${categoryURL}"> 
55			        	<span></span> 
56					</a>   
57			    </li> 
58				<#list categories as category> 
59					<#assign categoryURL = renderResponse.createRenderURL()> 
60					${categoryURL.setParameter("resetCur", "true")} 
61					<#assign categoryTitle = category.getTitle(themeDisplay.getLanguageId(), true) /> 
62					<#assign selected =selectedCategories?seq_contains(category.getCategoryId()) /> 
63					<#if selected > 
64						<li class="active"> 
65						${categoryURL.setParameter("categoryId", otherCategoriesParam)} 
66						<#assign capturedOutput> 
67							<a class="toggle-list" href="#"><span> ${categoryTitle} </span></a>                  
68						</#assign> 
69					<#else> 
70						<li> 
71						<#if otherCategoriesParam?has_content> 
72						        ${categoryURL.setParameter("categoryId", category.getCategoryId()?string + ',' + otherCategoriesParam)} 
73						    <#else> 
74						        ${categoryURL.setParameter("categoryId", category.getCategoryId()?string)} 
75						 </#if> 
76					</#if> 
77						<a title="${categoryTitle}" href="${categoryURL}"> 
78							<span>${categoryTitle}</span> 
79						</a> 
80					</li> 
81				</#list> 
82			</ul> 
83            <#if capturedOutput?has_content> 
84                ${capturedOutput} 
85            <#else> 
86				<a class="toggle-list" href="#"><span> ${categoryTitle} </span></a>         
87            </#if> 
88        </div> 
89    </#if> 
90</#macro> 
An error occurred while processing the template.
Error on line 1, column 1 in 20154#20194#28752
utilLocator.findUtil('csfactory-corporate-template-theme', 'com.bpc.csfactory.corporate.template.theme.ThemeHelper') is undefined.
It cannot be assigned to themeHelperUtil
1<#assign themeHelperUtil = utilLocator.findUtil('csfactory-corporate-template-theme', 'com.bpc.csfactory.corporate.template.theme.ThemeHelper') /> 
2<#assign vocabularyUtil = utilLocator.findUtil('com.liferay.portlet.asset.service.AssetVocabularyLocalService') /> 
3 
4<#if entries?has_content> 
5    <#assign entriesSize = entries?size /> 
6    <div class="wrapper"> 
7            <#list entries as entry> 
8                <#assign assetRenderer = entry.getAssetRenderer() /> 
9                <#assign assetRendererFactory = assetRenderer.getAssetRendererFactory() > 
10                <#assign className = assetRenderer.getClassName() /> 
11                <#if className =="com.liferay.portlet.journal.model.JournalArticle" > 
12                    <#assign journalArticle = assetRenderer.getArticle() /> 
13                     
14                    <#assign viewURL = assetRenderer.getURLViewInContext(renderRequest, renderResponse, viewURL)! /> 
15                     
16                    <!-- tags --> 
17                    <#assign categories = entry.getCategories() /> 
18 
19                    <#assign entryTitle = htmlUtil.escape(assetRenderer.getTitle(locale)) /> 
20                     
21                    <#assign docXml = saxReaderUtil.read(journalArticle.getContentByLocale(locale)) /> 
22                    <#assign imageUrl = docXml.valueOf("//dynamic-element[@name='image']/dynamic-content/text()") /> 
23                    <#assign description = docXml.valueOf("//dynamic-element[@name='description']/dynamic-content/text()") /> 
24 
25                    <a href="${viewURL}" class="news-item"> 
26                        <#if imageUrl?has_content> 
27                            <img alt="${journalArticle.getTitle(locale)}" src="${httpUtil.decodeURL(htmlUtil.unescape(imageUrl))}"> 
28                        </#if>                         
29                        <h3>${journalArticle.getTitle(locale)}</h3> 
30                        <span class="date">${entry.publishDate?string("dd.MM.yyyy")}</span> 
31                        <p>${description}</p> 
32                        <span class="tags"> 
33                        <#if categories?has_content> 
34                        <#assign comma = 'false'/> 
35                        	<#list categories as category> 
36                        	<#assign vocabularyId = category.getVocabularyId()/> 
37                        	<#assign vocabularyName = vocabularyUtil.getVocabulary(vocabularyId).getName()/> 
38                        	<#if vocabularyName == 'News-tag'> 
39                            	<#if comma == 'true' > 
40
41                            	<#else> 
42                            	    Tags :  
43                            	    <#assign comma = 'true'/> 
44                            	</#if> 
45                            	<span>${category.getName()}</span> 
46                            </#if> 
47							</#list> 
48						</span> 
49						</#if> 
50						 
51                    </a> 
52                </#if> 
53            </#list> 
54        </div> 
55    </div> 
56</#if>