New to Drupal - need help converting a staff listing

mollyavalon - July 1, 2009 - 15:21

I'm converting a site from weirdo legacy CMS + handcoded to Drupal. This is a pro bono project (nonprofit client I'm using as Drupal training for myself), and I'm trying to do a straight across conversion rather than redesigning anything. I'm not averse to redesigning, but it's outside the scope I've set for myself.

Most things are going fine except for this page:
http://gordonparks.org/people/people.staff.php

All the staff members have been entered as users, and I'm using the Content Profile module and Views. I can get a view similar to the first half of the page, where the names are grouped by department. I can also get a view similar to the second half of the page, where all the bios and pics appear. I just can't work out how to get them to work together. Here are some ways I've thought of working it out, but each raises new questions.

Possibility #1
Ideally I'd have two views on the page (using panels, which I haven't tackled yet), and the names in the department view would link to the names in the bio view below. How do I link one item in a view to the same item in another view?

Possibility #2
I could change the page so that I have the department view on this page, and the names would link to each person's profile.
Problem A: When I've tried this, all the profile fields for the person appear, not just the subset I need. This seems to mean I need another view, which brings me back to the question of linking from one view to another. How to do it?
Problem B: I need a back link to return to the main department listing.

Do I need to create a custom PHP template to handle this data? (This is something I haven't learned yet.)

An additional problem (which may necessitate its own thread) is that I want the department listing ordered by importance rather than alphabetically. Should I add a field to do this? Any suggestions on how to manage this?

Any help with any of these questions will be gratefully accepted. I've spent several head-bashing weeks on this.

mollyavalon

_

WorldFallz - July 1, 2009 - 16:46

There's several ways to combine 2 views into one page. If the defaults will be the same and just the options will differ, add an "attachment" display (you can choose to display it before or after the page view).

Another option include the http://drupal.org/project/viewreference, http://drupal.org/project/viewfield, and http://drupal.org/project/views_attach modules.

_
Don't be a Help Vampire - read and abide the forum guidelines.
If you find my assistance useful, please pay it forward to your fellow drupalers.

 
 

Drupal is a registered trademark of Dries Buytaert.