Any plans to create a Drupal 7 version?

Comments

mradcliffe’s picture

I've been thinking about this on and off for the last 2 months. Moshe was telling me last month that I was made redundant, but I don't think so. I am not sure if it's a good idea to store per group data in the user object along with the audience field.

mradcliffe’s picture

Current battle plan:

  • Change og_titles table into "og_titles" text field with unlimited values using delta as weight.
  • Change og_uid_titles into an OG_AUDIENCE_FIELD-like field where each group corresponds to delta with columns gid, title (and weight?).
  • Add a titles_text and titles_select widget for the og_uid_titles field.
  • Documentation: add og_uid_titles field to a user or profile2 entity, and og_titles field to a group entity.
  • Lots of changes to views, Ui, etc...
  • Upgrade path and tests.
  • Installer adds fields by default into the system with no field instances.
mradcliffe’s picture

I worked on this a bit this weekend and have it about 1/3 initially done.

The Ui is going to be the interesting part. Fields are attached via the Field Attach API, but this also handles the multiple values. In our case, however, we only want to see the multiple value that corresponds with the Group Id. It's going to be a bit hackish, but doable, to get a custom Ui for this.

mradcliffe’s picture

Roadmap:

  • Add a field to og_membership default bundle to store the title on a per user per group basis. This could not be a required field because we don't want other entity types to have group titles.
  • Depending on the group configuration, the field widget is a select list or a textfield.
  • Depending on Og field access, user can modify or group manager can modify, etc...
  • New UI for og_titles
  • New views for og_titles
  • Upgrade path
Sylense’s picture

any update on this?

mradcliffe’s picture

I worked on it within the last month, but I do not have anything installable yet. It's getting close though. Sorry for this taking so long as I tend to switch which project I'm working on every week or so.

mradcliffe’s picture

Status: Active » Needs work

Worked on this again from scratch. I pushed some non-complete code to the repo under 7.x-dev branch. Some basics working with og member title and og titles group membership and group entity fields respectively.

mradcliffe’s picture

Version: 6.x-1.x-dev » 7.x-1.x-dev
Status: Needs work » Fixed

Branched to 7.x-1.x from 7.x-dev. I think I can make a snapshot release now comfortably. Still plenty of features to implement to get back to the same functionality as 6.x-1.x.

Need to create follow-up issues.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Sylense’s picture

Status: Closed (fixed) » Active

I've installed and can't seem to get anything working. I see a new area titled "Membership Options" when you go to the group edit page but it just displays a blank page with a save button.

mradcliffe’s picture

Status: Active » Closed (fixed)

Can you open up a follow-up issue and look to see if there are any group membership fields created?

Edit: this was meant as an initial push to get some code up, but not as a 100% things are working thing.