Bio role terms
This module is an add-on for the Bio module, it automatically adds taxonomy terms to the Bio node based on the Bio nodes owners role.
With the Bio node assigned taxonomy terms with the same names as the rolse of its owner, it opens up a number of opportunities :
- Listing profiles by role
- Restricting access to profiles by both who is viewing the profile and who owns the profile (with the help of Taxonomy Access Control)
- ... and probably other things, answers on a postcard please :)
The module updates the Bio node every time the user or the bio node itself is saved. There is also a bulk update feature to process all Bio nodes at once.
Setup is very simple,
- Download and install the module
- Create a new vocabulary and insert some terms which match the names you have for roles e.g. admin
- Assign the new vocabulary to the Bio content type
- Go to the Bio role terms admin page (admin/user/bio_role_terms) and select the correct vocabulary, then save
- Optionally, perform a bulk update.
An example of use
Your creating/running a MMORPG site, the MMORPG has 2 teams, Red and Blue. Members of the Red team need to be able to see their team mates profile, however you don't want Blue team members seeing the Red team members profiles (and the Reds seeing the Blues etc). You cant restrict the whole content type by role, because they both use the same Bio content type. This is where Bio_role_terms comes in.
You create 2 roles [Red, Blue] and you create a taxonomy called "Roles" which contains the terms [Red,Blue], you enable and configure Bio Role Terms and also enable and configure Taxonomy Access Control - problem solved. You could get a lot more complicated with more roles and more complex TAC config, but you should get the idea.
This is a very new module and not fully community tested, so backup first. Also any budding coders out there, we have 3 TODO items in the code which would love some attention.
Patches, new features, issues etc all very welcome
Sponsored by OpenlyConnected