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> 
Back

N_test

N_test

2018-09-04

test


 news