For a recent project, we had to extend this module. We wanted to assign users to a personal website, but also connect them to a country website. Hence we extended the module so that you could create multiple categories of user <-> domain relationship
By default, there is one 'Personal website' category created, just like the current version of the module. When you add more categories, you can choose under which category a domain will be automatically created for a registering user, and also use the category to determine the domain a user will be directed to upon login.
The module also comes with Views relationship handlers so you can present listings of users, connected to domains via different categories. You can even connect the different categories of domains together through their mutual users (for example on a country site, you could show content created by users on their member websites).
I am attaching my work here. Note that the module is still only Domain Access 2.x compatible, and would therefore need a little work before a release. I would be happy to co-maintain this module.
| Comment | File | Size | Author |
|---|---|---|---|
| #7 | domain_user_7-1429892-1.patch | 39.2 KB | nirbhasa |
| domain_user-with-categories.zip | 17.34 KB | nirbhasa |
Comments
Comment #1
agentrickardThis is for d7 then?
Comment #2
nirbhasa commentedit is :) but currently only supports the 7.x-2.x version of DA.
Comment #3
agentrickardOk. If I make a real branch, can you roll a proper patch?
Comment #4
nirbhasa commentedYes, I would be happy to.
Comment #5
agentrickardGreat. Let me see what I can do.
Comment #6
agentrickard7.x-1.x branch created.
https://drupal.org/node/620424/git-instructions
Comment #7
nirbhasa commentedPatch applied, with some cruft cleanups. I realised on making the patch that domain creation on register hasn't been fully tested yet - I wasnt using that aspect for my project.
Comment #8
quardzThere is no "access" table anymore in Drupal 7. It throwing error
Comment #9
agentrickardThis module is seeking a new maintainer.
This is still a feature request. If the patch is buggy, it needs work.