letrof Posted March 14, 2013 Share Posted March 14, 2013 Hi all! I would like to split my categories to two groups (in one categoriesblock) to group my categories. One group would be accessories and the other one furnitures. Please see the attached file for exact explanation:) Is it possible? Best regards letrof Link to comment Share on other sites More sharing options...
vekia Posted March 14, 2013 Share Posted March 14, 2013 Hi all! I would like to split my categories to two groups (in one categoriesblock) to group my categories. One group would be accessories and the other one furnitures. Please see the attached file for exact explanation:) Is it possible? Best regards letrof you should edit blockcategories.tpl file and make simple {if} condition, by this i mean something like if id == id of this category (Meble Belldeco) then add <div>Header title</div> i hope that this is clear - if not we can try in polish language Link to comment Share on other sites More sharing options...
Dh42 Posted March 14, 2013 Share Posted March 14, 2013 Its a pain to do, but you can do it by editing the structure of the categories and editing the css to make top level categories look like the block heading. Link to comment Share on other sites More sharing options...
letrof Posted March 18, 2013 Author Share Posted March 18, 2013 Its a pain to do, but you can do it by editing the structure of the categories and editing the css to make top level categories look like the block heading. but it would make all of the top categories look like the block heading and I just want one "separator". Link to comment Share on other sites More sharing options...
Dh42 Posted March 18, 2013 Share Posted March 18, 2013 Right, what you would to is to make two top categories and everything else a sub category of them. Link to comment Share on other sites More sharing options...
letrof Posted March 19, 2013 Author Share Posted March 19, 2013 Right, what you would to is to make two top categories and everything else a sub category of them. But then I would have to change all categories and that is a SEO disaster... Is there any other way to insert a text between? It doesn't have to be link - just a text or even a picture? Link to comment Share on other sites More sharing options...
letrof Posted March 21, 2013 Author Share Posted March 21, 2013 No one knows? Link to comment Share on other sites More sharing options...
letrof Posted March 27, 2013 Author Share Posted March 27, 2013 you should edit blockcategories.tpl file and make simple {if} condition, by this i mean something like if id == id of this category (Meble Belldeco) then add <div>Header title</div> i hope that this is clear - if not we can try in polish language Can you please explain the {if} condition and where exactly put this code? my blockategories.tpl is now: <!-- Block categories module --> <div id="categories_block_left" class="block"> <h4><a href="{$blockCategTree.link}">{l s='Categories' mod='blockcategories'}</a></h4> <div class="block_content"> <ul class="tree {if $isDhtml}dhtml{/if}"> {* 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> {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> </div> </div> <!-- /Block categories module --> Link to comment Share on other sites More sharing options...
Marcelmm Posted September 4, 2014 Share Posted September 4, 2014 Can you please explain the {if} condition and where exactly put this code? my blockategories.tpl is now: <!-- Block categories module --> <div id="categories_block_left" class="block"> <h4><a href="{$blockCategTree.link}">{l s='Categories' mod='blockcategories'}</a></h4> <div class="block_content"> <ul class="tree {if $isDhtml}dhtml{/if}"> {* 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> {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> </div> </div> <!-- /Block categories module --> Yes, I would also like to know Link to comment Share on other sites More sharing options...
Recommended Posts