Hi,
I have a ct with a nodereference field and an advanced view for the allowed values.
The view:
- nodes
- row style with a grouping field
- filter only nodes by current user
The field:
- options widget - checkboxes
- multiple values
Problem: With the grouping in my rowstyle, the result of the view (_nodereference_potential_references_views) totally messes up. The (nid) keys do not match the rendered output. Is this a bug, am I missing something? With grouping in the row plugins style settings, everythng is ok.
What I actually want to do:
I want to have optGroups for the options widget, grouped by the grouping field defined in the view. Has anybody made experiences with this?
Thank you.
Comment | File | Size | Author |
---|---|---|---|
#2 | content_plugin_style_php_array_ac.inc_.patch | 761 bytes | Ghostthinker |
#1 | optgroup.png | 50.25 KB | Ghostthinker |
Comments
Comment #1
Ghostthinker CreditAttribution: Ghostthinker commentedHeres a screenshot of what I am trying to do: http://drupal.org/files/optgroup.png
Comment #2
Ghostthinker CreditAttribution: Ghostthinker commentedI realized that the plugin handler content_plugin_style_php_array_ac messes up with sorting. I made a patch that fixes the wrong sort order when the advanced view has a grouping field. Next I will go and look for a patch of the optionswidget.
Could anybody review my (tiny) patch?