MacDan Posted September 9, 2011 Share Posted September 9, 2011 hey folks, When the blockcategories.tpl file is "rendered" the source show up like <div id="categories_block_left" class="block"> <h4>Kategorien</h4> <div class="block_content"> <ul class="tree dhtml"> <li > <a href="http://www.com" title="yadayada">iPods</a> </li> <li > <a href="www.com" class="selected" title="yadayada">Zubehör</a> </li> <li class="last"> <a href="www.com" title="yadayada">Laptops</a> </li> </ul> How did the class="selected" there appear? Which file controls that? Should be possible to add a class on all list elements to give them all a unique style?! Saw that on a theme, he added several classes on the list elements to give them a different look via css. Its not possible to change the blockcategories.tpl... <div id="categories_block_left" class="block"> <div class="block_content"> <ul class="tree {if $isDhtml}dhtml{/if}"> [b]{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}[/b] </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> regards denny Link to comment Share on other sites More sharing options...
MacDan Posted September 9, 2011 Author Share Posted September 9, 2011 Nevermind found it myself -.- <a href="{$node.link}" class="{cycle values='x,y,z'}{if isset($currentCategoryId) && ($node.id == $currentCategoryId)} selected{/if}" in category-tree-branch.tpl 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