automatically expand hierarchy to show existing selections when editing node
rymo - May 28, 2008 - 02:12
| Project: | CCK Taxonomy Super Select Ultra |
| Version: | 5.x-1.1 |
| Component: | User interface |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Description
I can't tell if line 622 in the module is already trying to do this (and is broken) or if it's meant for something else entirely, but I changed my copy from:
<?php
$form_branch[$term->tid]['#collapsed'] = FALSE;
?>to:
<?php
$form_branch['#collapsed'] = FALSE;
?>which will prevent parents from starting collapsed when one or more children are selected. Now when I edit a node I can see straight away which terms are already selected without clicking around to expand every fieldset.
My situation is a single vocabulary with a set of parent terms (not selectable) which provide grouping for the selectable (checkboxes) second tier of child terms. Without this change, every edit looks like there's nothing selected until you go hunting...
- Ryan
