An error occurred while processing the template.
Error on line 1, column 1 in 20154#20194#28760
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 "FAQ-profile"> 
17							 <@displayCategories categories=categories otherCategoriesParam=otherCategories placeholder="${languageUtil.get(locale, 'select.profile')}"/> 
18							 <#break> 
19						<#case "FAQ-theme"> 
20							<@displayCategories categories=categories otherCategoriesParam=otherCategories placeholder="${languageUtil.get(locale, 'select.theme')}"/> 
21							<#break> 
22						<#default> 
23							<#break> 
24					</#switch> 
25				</#if>       
26			</#list> 
27		</div> 
28    </div> 
29</#if> 
30 
31<#macro displayCategories categories categories otherCategoriesParam placeholder> 
32    <#if categories?has_content> 
33        <#assign capturedOutput="" /> 
34        <#assign categoryTitle="" />     
35        <div class="select-list"> 
36			<ul> 
37			    <li>     
38			        <#assign categoryURL = renderResponse.createRenderURL()> 
39			        ${categoryURL.setParameter("resetCur", "true")} 
40			        <#assign selected = true/> 
41			        <#if selected > 
42						<li class="active"> 
43						${categoryURL.setParameter("categoryId", otherCategoriesParam)} 
44						<#assign capturedOutput> 
45							<a class="toggle-list" href="#"><span>...</span></a>                  
46						</#assign> 
47					<#else> 
48						<li> 
49						${categoryURL.setParameter("categoryId", otherCategoriesParam)} 
50					</#if> 
51			        <a title="..." href="${categoryURL}"> 
52						<span></span> 
53					</a>   
54			    </li> 
55				<#list categories as category> 
56					<#assign categoryURL = renderResponse.createRenderURL()> 
57					${categoryURL.setParameter("resetCur", "true")} 
58					<#assign categoryTitle = category.getTitle(themeDisplay.getLanguageId(), true) /> 
59					<#assign selected =selectedCategories?seq_contains(category.getCategoryId()) /> 
60					<#if selected > 
61						<li class="active"> 
62						${categoryURL.setParameter("categoryId", otherCategoriesParam)} 
63						<#assign capturedOutput> 
64							<a class="toggle-list" href="#"><span> ${categoryTitle} </span></a>                  
65						</#assign> 
66					<#else> 
67						<li> 
68						<#if otherCategoriesParam?has_content> 
69						        ${categoryURL.setParameter("categoryId", category.getCategoryId()?string + ',' + otherCategoriesParam)} 
70						    <#else> 
71						        ${categoryURL.setParameter("categoryId", category.getCategoryId()?string)} 
72						 </#if> 
73					</#if> 
74						<a title="${categoryTitle}" href="${categoryURL}"> 
75							<span>${categoryTitle}</span> 
76						</a> 
77					</li> 
78				</#list> 
79			</ul> 
80            <#if capturedOutput?has_content> 
81                ${capturedOutput} 
82            <#else> 
83				<a class="toggle-list" href="#"><span> ${categoryTitle} </span></a>         
84            </#if> 
85        </div> 
86    </#if> 
87</#macro>