is it possible to have the dropdown for the filter list the taxonomy in an hierarchacal manner?

Comments

jschoder’s picture

I would also need this

dbell154’s picture

// Change to event.module for hierarchial dropdown in display

From:
foreach ($tree as $term) {
$items[$term->tid] = $vocab->name .' - '. $term->name;
}

To:
foreach ($tree as $term) {
$dash = '';
while ($term->depth--) {
$dash .= '-';
}
$items[$term->tid] = $dash . $term->name;
}

You'll have to arrange the categories the way you want it.
This just displays them the way they are categorized, like in Create Event.

Main
-Sub Category
--Sub Sub

japerry’s picture

Status: Active » Closed (outdated)

Event for Drupal 8 is unrelated to older versions. If an issue similar to this one exists, please open a new issue with the 8.x branch.