dropdown event filter in hierarchical manner?

chasz - August 29, 2008 - 06:24
Project:Event
Version:6.x-2.x-dev
Component:Code
Category:feature request
Priority:critical
Assigned:Unassigned
Status:active
Description

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

#1

jschoder - June 6, 2009 - 08:27

I would also need this

#2

dbell154 - August 14, 2009 - 18:47

// 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

 
 

Drupal is a registered trademark of Dries Buytaert.