Show tab on profile only if user is certain role
fehin - March 11, 2009 - 01:14
| Project: | Bio role terms |
| Version: | 5.x-0.1 |
| Component: | Documentation |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
Hi, I saw your comment (http://drupal.org/node/271203#comment-884418) about this module and thought I could use it to limit who can have certain tabs on their profile depending on their role. I installed this module but can't figure out how to do this with the module. Any help would be greatly appreciated. Thanks.

#1
This module applies the role a person has to their bio content type.
You could then in the tpl or using another module, restrict access or change display based on the taxonomy term applied to the bio content type... e.g. (continuing the example on the project page) red users could have a link to the red's custom menu linking to gallery and homepage, while the blues who haven't set anything up get nothing.
please close if this answers your question.
#2
I have a tab that my views generated. I only want it to show on a user's profile if the user is in a certain role. Can I use this module with views to limit where this tab shows? Thanks in advance.
#3
No, this module alone will not do what you need.
All this modules does is apply taxonomy terms to the users profile node e.g. if the user has the "Admin" role their bio node will be given a "Admin" taxonomy term.
You need to find a way to restrict the tabs shown by views based on the taxonomy of the node currently being displayed, or do it "by hand" in the theme layer.