Jump to content
Medicina33

Categories Block: multi layout

Recommended Posts

Maybe some of you already thought about it.

It woul be good having the possibility to define different layouts for different category-item, in order to differenziate items belonging to different macro-categories

For instance, let's suppose to have the following 4 categories defined in the category block.

Mele
Pere
Limoni
Arance

What I would like to do, is to have a green background for the first 2 items and a red background for the last 2, as depicted in the attached picture.

Any suggestion is welcome.


Thank you in advance.

21084_P2a9CiDLMNweRiPMaVMA_t

Share this post


Link to post
Share on other sites

I'd really need to know it too. I'd like to use a different color for 2 different fields (among others). Lik the 2 main products with 2 different colors and below them all the other ones with default color.

Share this post


Link to post
Share on other sites

you can modify category-tree-branch.tpl file

add there class definition like:

<li class="cat{$node.id} {if isset($last) && $last == 'true'}last{/if}">

then in css styles you will be able to use css:

.cat1 { styles here }

.cat2 { styles here }

.cat6 { styles here }

.cat12 { styles here }

...

...

etc

..

..

  • Like 1

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More