Hello!

I need to replicate the functionality of a directory of staff. Our old(/current) intranet has one and it's something people check pretty often.

The way I'm planning on setting up our OA site will mean that the 'All staff' space will have members added individually; these will then be inherited by an 'All staff' group, and other top-level spaces will inherit membership from that group - rather than the space - so they don't become nested subspaces.

Anyway, that means that the logical place for a staff directory is in 'All staff'. I think the 'members' button is available to general users, so it made sense to me to use that. Here come my questions:

1) Am I right in thinking that adding fields to user profiles is as simple as going to /admin/config/people/accounts/fields and adding in there?
2) On the /[space]/members page, can I change what is displayed in the dropdown box that appears when a user clicks a member? Ideally, I want to have profile, contact number and email address displayed at the top with the admin options below (see attached), but...
3) If that isn't possible, how can I replace the default /members pane with a custom view that will do the job?

All advice appreciated, especially if I've got this all wrong and there's an easier way to do it!

CommentFileSizeAuthor
intranet-members.png37.7 KBkdmcguire

Comments

mpotter’s picture

1) Yes, you should be able to just add new fields to the user entity. Improving the user profile fields is on our roadmap so in the future you might see some additional fields get added for common information.

2) The dropdown box that appears when you click a member is only to show "actions" for Admins to use on that member, such as Adding them to a space, Removing from a space, etc. The fact the dropdown shows when just the Dashboard option is available is a bug and in the future clicking a user will go straight to their dashboard if that is the only action.

So no, you can't add stuff to the dropdown. You'll want to add the additional fields to the user's profile page. There should be a Panels Page for showing the user's profile info that you can modify to add your additional fields. Or just set your fields to show up in the Teaser view of the user and that should work (if not now, that is how the profile will eventually be shown)

kdmcguire’s picture

How do I set the fields to show up in the Teaser view, and what would that do? I've found out how to add a new variant to the user dashboard/profile page, but so far I've had no luck making the /members page of spaces more useful.

mpotter’s picture

When adding a panels widget, in the User Content tab there should be a default Drupal widget called "User Profile". This widget has a "View Mode" field. It's doesn't have "Teaser" like Nodes, but it has any other View Mode that you define within your normal Drupal User entity.

Open Atrium doesn't currently use the User View Modes, so you might be able to use the "Featured" view mode provided by Panopoly and change which user fields are shown within that view mode.

Argus’s picture

Version: 7.x-2.04 » 7.x-2.x-dev
Category: Support request » Feature request
Priority: Minor » Normal

Updating

mpotter’s picture

Category: Feature request » Support request
Status: Active » Closed (fixed)

Don't think there was any feature request here. Answered support question about how to modify the user profile.