Multiple Selection
rgeorgy - July 30, 2009 - 08:41
| Project: | Nodereference Explorer |
| Version: | 6.x-1.1-beta4 |
| Component: | User interface |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | needs work |
Jump to:
Description
Is there are a way to select multiple items from node explorer's view?

#1
Well, that would efford some work :)
Each view item has since version 1.1-beta 2 a hidden radio button (by CSS) that enables selection.
For realizing this feature the follwing steps have to be done:
1. Provide a configuration option for "Multiple" in the widget settings.
2. Extend the two view preprocess function with check boxes and load them when configuration option enabled:
- Row fields: theme.inc, function template_preprocess_nodereference_explorer_view_row_fields_selectable
- Table selectable: theme.inc, function nodereference_explorer_preprocess_views_view_table
3. Extend JS for check box selection in explorer.js, function Drupal.behaviors.NodereferenceExplorerSelection
4. Set values for parent widgets in exploreractions.js, function Drupal.nodereference_explorer.actions.setValue.
Synchronization with the form CCK fields may be needed, e. g. load addition widget via content/js_add_more call back.
Some more tasks have to be completed, f. e. when selection on different pages is wanted.
Patches welcome.