Thanks for the handy module! I did not understand what gives the "depth classes" option and how it might be used. I checked it and did not see any influence on the output. Should there be some extra configuration following checking this option?

Amir

Comments

Mark Theunissen’s picture

After checking this box, some extra processing is done to calculate the depth of the items. You won't see anything change visually, but if you take a look at the HTML source, you will see that the items have those extra classes. You can then use CSS to style them however you like (maybe by making them bold, for example).

Hope that helps!

amir simantov’s picture

Thanks Mark, I will give it a try!

bartezz’s picture

I'm using depth classes but there is something strange going on. I have a taxonomy with 3 levels;

- Vehicles
-- Man powered
--- Bicylcle
--- Unicycle
-- Motorized
--- Airplane
--- Car
--- Motorcycle

When I first enabled the module to add depth classes I styled the depths. The depth classes that were added were depth-0, depth-1 and depth-2.

Now after working on the site for a while I noticed the classes were messed up. When I look at the source code I notice the better select now adds classes depth-0, depth-2 and depth 4. Nothing has changed in the taxonomy.

I've disabled the option and re-enabled but this doesn't have any effect. How can this be happenening?

Cheers

john franklin’s picture

Version: 6.x-1.0-beta2 » 6.x-1.x-dev
Status: Active » Postponed (maintainer needs more info)

Is this still happening? I can't reproduce it with the current 6.x-1.x-dev.