Jump to content

How to customize block categories in PS 1.6


Przemysław Suszek

Recommended Posts

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

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

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...