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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Ghostthinker’s picture

FileSize
50.25 KB

Heres a screenshot of what I am trying to do: http://drupal.org/files/optgroup.png

Ghostthinker’s picture

Category: feature » bug
Status: Active » Needs review
FileSize
761 bytes

I 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?