I have a Drupal 7.0 social site with three roles, each with a profile they may or may not want other roles to see all/part of. I'm not sure how to allow the user to specify which fields can be viewed by each role, but this is my current idea:
- Create an on/off checkbox to signal view permission for each role per profile field
- Use the views module to present profile, filters allowed view of each profile field
- Similarly, when editing a profile, it will be presented with a view module so that corresponding role permission checkboxes can show next to it.
I imagine 'edit profile' could look similar to Drupal permissions (except under permissions would be the profile fields instead of module/feature list):
I'm clear on how to set up the view such that any given role can see each profile field that has been checked.
But is this possible to make it so when the user is setting up their profile, they see a view to add/edit profile2 with inline permission boxes instead of the default profile form that hasn't any such checkboxes?
Perhaps I would need customize adding in hook_form_alter or can this all be done in the UI?