Index: README.txt =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/hierarchical_select/README.txt,v retrieving revision 1.25 diff -u -p -r1.25 README.txt --- README.txt 15 Jul 2008 22:09:44 -0000 1.25 +++ README.txt 16 Aug 2008 19:29:50 -0000 @@ -83,6 +83,46 @@ that includes Drupal core modules). Simp hook_form_alter() implementations into the corresponding form definitions. +Addressing Views exposed filters display issues +----------------------------------------------- +When using Hierarchical Select to alter an exposed Views filter (i.e. an +exposed taxonomy filter), you may run into display issues due to the Views +method theme_views_filters(), which renders filters as columns within a table. +This results in behavior where the select boxes within the Hierarchical Select +widget may split onto multiple lines or be too cramped together. The following +theme override sample, written for the Zen theme, renders the filters as rows +within a table, leaving much more room for the Hierarchical Select widget. To +use, follow the instructions for overriding theme functions described at +http://drupal.org/node/55126 + +exposed_filter)) { + foreach ($view->exposed_filter as $count => $expose) { + $rows[] = array( + array('data' => $expose['label'], 'header' => TRUE), + drupal_render($form["op$count"]) . drupal_render($form["filter$count"]), + ); + } + } + $rows[] = array( + array('data' => '', 'header' => TRUE), + drupal_render($form['submit']) + ); + if (count($rows) > 1) { + $output = drupal_render($form['q']) . theme('table', array(), $rows) . drupal_render($form); + } + else { + $output = drupal_render($form); + } + return $output; +} +?> + + Sponsors -------- * Initial development: