Jump to content

Kategori tree link directly to page...


Recommended Posts

ok, now i probably understand

 

after click on category you want to roll out subcategories in categories tree, like below:

 

1cyRu1v.png

 

so ad I said you don't want to open category page, just to roll out categories in tree, am I right?

 

you must modify block categories module (js + smarty code probably)

  • Like 1
Link to comment
Share on other sites

MM only thing in root/ modules/blockcategories/ blockcategories.tpl is this code:

 

 

<!-- Block categories module -->

<div id="categories_block_left" class="block">

<p class="title_block">{l s='Categories' mod='blockcategories'}</p>

<div class="block_content">

<ul class="tree {if $isDhtml}dhtml{/if}">

{foreach from=$blockCategTree.children item=child name=blockCategTree}

{if $smarty.foreach.blockCategTree.last}

{include file="$branche_tpl_path" node=$child last='true'}

{else}

{include file="$branche_tpl_path" node=$child}

{/if}

{/foreach}

</ul>

{* Javascript moved here to fix bug #PSCFI-151 *}

<script type="text/javascript">

// <![CDATA[

// we hide the tree only if JavaScript is activated

$('div#categories_block_left ul.dhtml').hide();

// ]]>

</script>

</div>

</div>

<!-- /Block categories module -->

Link to comment
Share on other sites

you must edit branche tpl file by adding condition: "if category is main category" - if so, - remove <a href> from it and add simple action onclick="".

 

You have to add in onclick function to rollout subcategories, exactly as @PascalVG said , script for this module is located in theme folder

Link to comment
Share on other sites

×
×
  • Create New...