OwenS Posted September 9, 2010 Share Posted September 9, 2010 Hi,I looked everywhere on the net, but can't find an answer yet to my problem. Hope someone here can help me out.In a webshop, I need to have a special category. Normally if you open the store, then in the lefcolumn, the category module will be displayed with all categories. What I want is to prevent this special category is shown there.Instead of there, I want to let it be shown in a menubar on top of the website.Anyone an idea how I can get this done?Thanks! Link to comment Share on other sites More sharing options...
MrBaseball34 Posted September 9, 2010 Share Posted September 9, 2010 Try changing blockcategories.tpl in /modules/blockcategories directory like this: {foreach from=$blockCategTree.children item=child name=blockCategTree} {if $child.name != 'name of special category'} {if $smarty.foreach.blockCategTree.last} {include file=$branche_tpl_path node=$child last='true'} {else} {include file=$branche_tpl_path node=$child} {/if} {/if} {/foreach} Link to comment Share on other sites More sharing options...
OwenS Posted September 9, 2010 Author Share Posted September 9, 2010 Great, almost prefect...Now my only problem is that I have 3 languages so in other languages it is still shown.Any suggestion to solve that too? Link to comment Share on other sites More sharing options...
MrBaseball34 Posted September 9, 2010 Share Posted September 9, 2010 Let me look into how to use the translations in that if... Link to comment Share on other sites More sharing options...
OwenS Posted September 9, 2010 Author Share Posted September 9, 2010 Thanks...i'll wait your answer then :-) Link to comment Share on other sites More sharing options...
MrBaseball34 Posted September 10, 2010 Share Posted September 10, 2010 Give this a try, I can't test it for you... {foreach from=$blockCategTree.children item=child name=blockCategTree} {capture name=cat_name}{l s='name of special category'}{/capture} {if $child.name != $smarty.capture.cat_name} {if $smarty.foreach.blockCategTree.last} {include file=$branche_tpl_path node=$child last='true'} {else} {include file=$branche_tpl_path node=$child} {/if} {/if} {/foreach} Link to comment Share on other sites More sharing options...
OwenS Posted September 10, 2010 Author Share Posted September 10, 2010 Tried several things...also updating translationfiles, but it is not working yet....If I make the name exactly the same as one of the 3 translations, then it works...but not if I fill in the proper translations for the string value. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now