Hello,
as it is possible to choose how many times a group content can be added to a group of the same type, it can be usefull that, when one chooses a Group cardinality different than 1, which is default, it became possible to choose several groups .
Currently, the "Social Group select list" widget that is used to select the group to which content is attached does not seem to allow it and does not take into account other options.
For example, for choosing a public groupe for a topic, even having chosen another cardinality at /admin/group/content/manage/public_group-group_node-topic,

it is impossible to choose multiple groups at /node/add/topic

or to choose another widget at admin/structure/types/manage/topic/form-display

Thanks for your work
| Comment | File | Size | Author |
|---|---|---|---|
| Capture du 2018-10-17 14-29-32.png | 28.62 KB | ohmdesbois | |
| Capture du 2018-10-17 14-29-05.png | 18.84 KB | ohmdesbois | |
| Capture du 2018-10-17 14-28-38.png | 40.3 KB | ohmdesbois |
Comments
Comment #2
rsbecker commentedThis is very much needed. A few months ago I tried to solve this issue by creating an entity reference field, field_groups, to accomplish this. The problem that causes is you must rebuild all the views group events, group topics, group stream) to use that field, rather than the group relationship.
I think the real problem is that the social_group module treats the value in this field as a single integer. So if you change the field widget in the form to autocomplete, you get an error upon saving that the module cannot handle an array. As noted above, the plugin allows Group cardinality =0, meaning an unlimited number of references, the social group select list should honor that setting.
Comment #3
dajka commentedHi, I think my issue is related to this. I would like to be able to select a different widget type for selecting the group when creating a new topic.
When I enable filed UI i am able to change the widget type, but it changes back to "Social group select list" as soon as I save the form display settings.
I believe this should be an easier fix, as it is only related to the selecting process of the group, not the relationship. I would like to be able to select the group with autocomplete. Any idea? Thanks :)
Comment #4
jaapjan commentedI agree that it would be nice to add this to the distro. It should however be configurable on a per-site basis.
Comment #5
dereks commentedI'd love to see this feature added as well.
Comment #6
dmrdesign commentedHi!
When I configured my site, I change some stuff that I don't remember.
So now user can't choose a group, when create a node (even if he is a group admin or member).
But admin can.
How to fix it?
Comment #7
ohmdesbois commentedHey dmrdesign, maybe you changed the parameter from the Open Social configuration in /admin/config/opensocial/social-group ?
Comment #8
iaminawe commentedWould also love to see this feature. Thanks!
Comment #9
vnech commentedRelated changes added in the PR
Comment #10
ribelProposed changes were reviewed and tested and can be merged after maintainer review.
More details can be found in the Pull Request.
Comment #13
navneet0693 commentedComment #14
navneet0693 commentedThis will be available in Open Social 10.3.0 onwards.
Comment #15
ressinelPR with some fixes: https://github.com/goalgorilla/open_social/pull/2499