Lukas123456 Posted July 3, 2014 Share Posted July 3, 2014 Ahoj, prosím o radu. Na úvodní stránce mého e-shopu je v modulu blok kategorií uveden nadpis "Kategorie" (viz příloha). Pokud ale kliknu na nějakou z kategorií, například "Men", tak se nadpis "Kategorie" přepíše na "Men". Chtěl bych, aby byl nadpis stále "Kategorie" a neměnil se. Díky za rady. Link to comment Share on other sites More sharing options...
ČeskáPresta.cz Posted July 4, 2014 Share Posted July 4, 2014 Zdravím, máte PS 1.6.? Zkopírujte sem obsah souburu z themes/VaseSablona/modules/blockcategories/blockcategories.tpl Napíšu Vám, co upravit. Link to comment Share on other sites More sharing options...
Lukas123456 Posted July 4, 2014 Author Share Posted July 4, 2014 Díky moc, ano mám PS 1.6. Zde je obsah souboru blockcategories.tpl: {if $blockCategTree && $blockCategTree.children|@count}<!-- Block categories module --><div id="categories_block_left" class="block"> <h2 class="title_block"> {if isset($currentCategory)} {$currentCategory->name|escape} {else} {l s='Categories' mod='blockcategories'} {/if} </h2> <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> </div></div><!-- /Block categories module -->{/if} Link to comment Share on other sites More sharing options...
ČeskáPresta.cz Posted July 4, 2014 Share Posted July 4, 2014 Stačí změnit toto: <h2 class="title_block"> {if isset($currentCategory)} {$currentCategory->name|escape} {else} {l s='Categories' mod='blockcategories'} {/if} </h2> na toto <h2 class="title_block"> {* {if isset($currentCategory)} {$currentCategory->name|escape} {else} {/if} *} {l s='Categories' mod='blockcategories'} </h2> Vykomentování toho IFu a zanechání fixního stringu categories, bez ohledu na kategorii. 1 Link to comment Share on other sites More sharing options...
Lukas123456 Posted July 4, 2014 Author Share Posted July 4, 2014 Mockrát děkuju, vše funguje jak má :-) 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