Ugh, so, I've been searching "teh interwebs" for ages now. Literally for 2 straight weekends, but I still have no clue how to do this...
- Imagine a homepage that has a view that's set up to show all blog articles on my site.
- Taxonomy has made it possible for me to blog about: Basketball, Design and Art.
- The "Basketball" tag has "NBA", "Local Basketball" and "Boston Celtics" inside it's hierarchy.
Questions:
- Is it possible to add a CSS class that says:
class="basketball"
- Is it possible to add CSS classes that say:
class="basketball nba local_basketball boston_celtics"
- Can I do this same thing later on for the node view pages where I see the article?
I know a little php, but I have a design background so my html/css are far better, if that helps. So far, I've figured out that I should somehow (how? :x) be able to fetch the value from the available variables in the views-view.tpl.php file, but after using "print_r(get_defined_vars())" (with pre's ofc :p) I got totally lost and have no idea how to actually fetch that variable. Also, I want the classes to be better than taxonomy ID based, I really need the names in there.
If I can the names in a string, I'll be able to figure out by myself how to change spaces to underscores, so don't be too worried about that.