Support for hierarchical select from Organic Groups audience picker

alex.k - December 1, 2008 - 18:04
Project:Better Select
Version:6.x-1.0-beta1
Component:User interface
Category:feature request
Priority:normal
Assigned:Unassigned
Status:active
Description

Hi, great module! :)

I've tried to use it on node creation pages where OG is on. If I'm a group admin, the audience list is a long select showing first the groups I'm in, and then all other groups. Betterselect shows it as to 'Array' entries instead of two groups of checkboxed entries (see screenshots). Any chance you could look at how to handle this, would be great. Thanks!

AttachmentSize
Betterselect rendering of this form element19.92 KB
Standard rendering (the bold headings are not clickable)33.31 KB

#1

alex.k - December 1, 2008 - 18:09

Pasting HTML source of how it is rendered by default, the plain select list. Maybe it would give you clues...

<fieldset id="fieldset_groups" class=" collapsible">
<legend><span>Groups</span></legend>
<div class="form-section" id="edit-og-groups-wrapper">
<label class="title" for="edit-og-groups">Audience: </label>
<p class="description">Show this post in these groups.</p>
<div class="select">
<select name="og_groups[]" multiple="multiple"  class="form-select og-audience" id="edit-og-groups" >
<optgroup label="My groups">
<option value="72">Configuration Management</option>
<option value="2961">Demonstration Group</option>
<option value="2">Site Members</option>
<option value="83">Test group - open</option>
</optgroup>
<optgroup label="Other groups">
<option value="3520">Communities of Interest</option>
<option value="507">Darren Test Group</option>
<option value="2995">DarrenRegularUserGroup</option>
</optgroup>
</select>
</div>
</div>
<div class="form-section" id="edit-og-public-wrapper">
<div class="checkbox">
<label class="option"><input type="checkbox" name="og_public" id="edit-og-public" value="1"   class="form-checkbox" /> Public</label>
</div>
<p class="description">Show this post to everyone, or only to members of the groups checked above. Posts without any groups are always <em>public</em>.</p>
</div>
</fieldset>

#2

lpt6 - December 5, 2008 - 11:52

i encountered the same problem. pls help as better select is really useful

#3

wesku - January 14, 2009 - 08:53

I have exactly same problem with OG + better select. For now I had to disable better select. :-(

#4

Mark Theunissen - February 27, 2009 - 16:51
Title:Incompatible with hierarchical select from Organic Groups audience picker» Support for hierarchical select from Organic Groups audience picker
Category:bug report» feature request

In the latest -dev release, the better select module will not break select boxes that it can't convert properly. So you won't see this problem, but you won't get the select boxes either.

This is a similar issue to the following: http://drupal.org/node/341598.

I will look into supporting these multi-multi-select boxes (for want of a better term) in the near future. Thanks!

#5

frankcarey - June 12, 2009 - 15:58

any updates on this?

#6

bobkepford - June 19, 2009 - 23:54

I am also interested in the OG support for this module.

 
 

Drupal is a registered trademark of Dries Buytaert.