Is it possible to add a function, especially to the taxonomy_context_show_children(); function where the theme developer can assign custom class names and ids for the html tags outputted? So the classes for the "li" elements could be customized to the and the main "ul" element could be given an id.
For example:
function taxonomy_context_show_children($tid, $base = false, $classes = array('ul' => 'menu', 'leaf' => 'leaf', 'collapsed' => 'collapsed', 'expanded' => 'expanded')) {
// ...
}
or something similar. Instead of the hard coded class names for the menu items, the custom values are used.
Comments
Comment #1
nedjoI think you could do this through a theme. Note that the term display is generated in
function theme_taxonomy_context_term(). Put a custom taxonomy_context_term() function in your theme to override this, and put your custom classes there.Comment #2
nancydruReopen this with a current release if it is still valid.