Przemysław Suszek Posted November 9, 2014 Share Posted November 9, 2014 Hi, I want customize my block categories bcs now every elements looks the same. Look at file below. How can I modify this module. I find blockcategories.tpl and code which generate list of categories but I don't understand it's work. <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> I want to add class in my css to customize every leaf in this tree. Kind regards Link to comment Share on other sites More sharing options...
tuk66 Posted November 10, 2014 Share Posted November 10, 2014 An example of odd/even class usage is at /your-admin/themes/default/template/helpers/list/list_content.tpl {if $position_identifier}id="tr_{$position_group_identifier}_{$tr.$identifier}_{if isset($tr.position['position'])}{$tr.position['position']}{else}0{/if}"{/if} class="{if isset($tr.class)} {$tr.class}{/if} {if $tr@iteration is odd by 1}odd{/if}" 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