Jump to content

Keeping a category out of the category module but into the mainmenu


OwenS

Recommended Posts

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

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

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...