Closed (fixed)
Project:
Group
Version:
7.x-1.x-dev
Component:
Group (group)
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
28 Aug 2014 at 11:02 UTC
Updated:
16 Oct 2014 at 20:59 UTC
Jump to comment: Most recent
Comments
Comment #1
kristiaanvandeneyndeHi there,
Coincidentally, I've got this in my notes: "Fieldable memberships?" :)
A GroupType entity defines what fields a Group entity of that type will have. So the GroupType acts as a bundle for Group. The problem that's been holding me back is: How do I define what bundle a membership will have?
Adding a GroupMembershipType entity may not do the trick because I can't currently imagine where and how you would specify them. Does every GroupType get its own GroupMembershipType? Probably not because you don't want to configure the same thing over and over should you wish to share them.
Perhaps we could define GroupMembershipTypes as 'templates' and force site builders to select one for each GroupType: that way you could share them over different group types, but you'd still be limited to one GroupMembershipType per GroupType.
Perhaps you could provide me with some insights and the use case you're looking at? The more use cases I've got, the easier it will be for me to decide what action to take.
Comment #2
Tranko commentedHello,
Although I'm not going to use for this, as requested in Organic Groups usually to have members with time, so depending on payment status, or points or inactivity, shall retain their membership while others lose their membership.
In my case, I want to use membership as a state to manage events, the so as to create an event (which is a group) and request entry to the group is assigned a type of membership, when you checkout, you are assigned other membership; if proposed activity, then the membership would be the collaborator. In all cases the role is the same, but I want to distinguish between the different membership group members.
regards,
Tranko.
Comment #3
kristiaanvandeneyndeSo basically you want to add a field to a membership? :)
Comment #4
Tranko commentedYes, a status field, or more fields, depending on various combinations.
I'm trying to work with Entity Reference + Rules + Views, but may be fieldables memberships that would be fantastic for me.
Comment #5
Tranko commentedAhhh I forgot, one of the best uses of fieldable membership is using the data to take the member to a determinate role, or make a form to the user to ask something in the membership to denied enter o not.
Thanks a lot!
Comment #6
kristiaanvandeneyndeOkay, setting this to postponed then as I'm still on the fence about this.
Comment #7
ctrladelI recently ran across 2 instances where it would be useful to have fields on a membership.
The first is I would like to be able to designate a member as being full time, 3/4 time, 1/2 time, or 1/4 time and since this is a field that can change for a user over time I would like to store it at the member level instead of the user level.
The second is I am combining some numbers from nodes that reference a group and I need to break the numbers up and assign them to different members within the group but the numbers are only useful for that group and no other groups, the first solution that popped into my head was to add a field to the group membership.
I wrote down my thoughts for implementation but then realized your template idea was pretty much my idea but way better.
Comment #8
kristiaanvandeneyndeHmm, once my schedule clears up I'll start thinking about this. There are a lot of gotchas to the concept, though :/
Comment #9
kristiaanvandeneyndeOkay in the latest dev it is possible to attach fields to memberships.
Note that:
Files were moved, clear your caches after updating to the latest dev!
Comment #10
kristiaanvandeneyndeDue to lack of response, I've gone and tested it myself.
Check out alpha4 for the newest fieldable member functionality and open a new ticket if anything pops up.
Comment #11
Tranko commentedHi.
Forgive the delay in test functionality.
I'm trying to get the user if they wish to join the group should complete the membership fields, is it possible, how?
Edit: Im using the version 7.x-1.0-alpha3+8-dev, when you will update to the 7.x-1.0-alpha4?
Regards,
Tranko.
Comment #12
kristiaanvandeneyndeAlpha 4 is out now, it got some delay from the automated release bot.
The problem with having members fill out a form before they become members is that they are still outsiders while filling out the form. This means we can't give them member-only permissions such as 'edit x profile'.
It's also a usability issue to first have someone register to the website and then have them register again to a group. On the other hand, making memberships fieldable and not being sure your required fields will be filled out is also weird.
We could add a new button 'Subscribe' instead of 'Join group' which shows a form first, but then it would still only be able to load the default member fields (and not the profile ones) because the subject would still be an outsider at that point.
Comment #13
kristiaanvandeneyndeActually, I've got an idea. Hold on :)
Comment #14
Tranko commentedGreat. I look forward, I'll try the other things at the moment works well and does not throw any error.
Comment #15
kristiaanvandeneyndeI've just created an alpha5 which has this functionality.
Check the permissions for 2 new ones:
As always, clear your caches when updating.
Tip: All profiles available to regular members will also show up on the join or request form.
Comment #16
ydahiI have a use case that might throw a wrench in the new permissions scheme:
- user (member_x) requests to join group
- group admin (member_a) approves request
- member_x does not have any group role (other than the default "member") upon approval
This is currently problematic because I want to limit which roles can leave the group.
If I specify that the default "Member" role can leave the group, this inherently includes the group admin.
This is also true for any permissions that I want to give members only (i.e. permissions that group members can have and the group admin cannot have). For instance, I may want members to be able to create certain node types, while admins cannot.
I realize that the group admin can assign roles to members, but it would be ideal if this was automatic (if there was a default role).
Is it possible to specify a default Member Role (like Creator Role) when a user is approved/joins a group? I tried to create a rule that would handle this to no avail.
Thanks for your time and a great module :-)
Comment #17
kristiaanvandeneyndeParameter: Data to compare: [group-membership:group:group-type], Data value: MyGroupType
Parameter: Type: Group role, Value: my_role_machine_name
Provides variables: Group role (group_role)
Parameter: List: [group-membership:roles], Item to add: [group-role], Enforce uniqueness: true
Comment #18
Tranko commentedIts works fine! Thanks a lot!
Comment #20
ctrladelI am getting started on adding some fields to memberships so far everything has worked out fine.