Hi,
I am relatively new to using Drupal (approx. 6-7 months). I am creating a Drupal site and within the site, I want to create a very basic Member List. The Member List that I would like to create would have all registered users with the formatting appearing as:
Last name, First Name
Last Name, First Name
Last Name, First Name
...and so on
I have read through Drupal Forums and find bits and pieces of what I am trying to accomplish...but no, "Step 1, Step 2, Step 3, etc". I have tried to set it up using the Profile Module and the User List. I now want to customize the layout of the individual profile layout and also the User List. Right now, my User List appears as:
username <-- the username hyperlinks back to the profile
First Name
Last Name
username
First Name
Last Name
I would rather not display the username and just have the Last Name, First Name contain the hyperlink back to the individual profile.
I've tried using Views, but I wasn't able to get it to work that way either. Anyone have any ideas? I used the "Pushbutton" theme and renamed it for my project before I began adjusting colors, layout, etc. The Drupal version is 5.15.
Thanks for any input that anyone is able to provide.
Michael
Comments
Drupal 5?
How committed are you to D5? I think this would be very easy to do using D6 and Views2, but I don't have any experience with D5 and Views.
In D6, you can create a view of "user" (vs. node) information. All your profile fields are then available for you to display/hide/sort as you like.
Agreed. I'd go to D6 if
Agreed. I'd go to D6 if possible. This is a thirty-second task in D6 and Views 2. Can't remember how to do it in D5. Brain ... creaky. :)
Making a little progress... :)
Hi all,
I've made some progress! Thanks to sharplesa and domesticat's recommendations, I have upgraded to D6! It is much nicer than D5. I have also setup Views 2. I'm still having trouble getting my Member List to appear like I want.
I would like for it to appear as:
Last Name, First Name
Last Name, First Name
Last Name, First Name
I would also like for the entire "Last Name, First Name" to contain the hyperlink back to the specific user profile. Any ideas on what file I need to change...or how I can go about making this happen?
I have attached an image of what my Member List looks like as of now.
Thanks for any help or recommendations in advance!
Michael
You must unlock the power of Views2
So you've successfully picked that you're creating a view of type "User".
Now, you also have to configure other things.
Go to admin/build/views/edit/{yourview}.
Click on the gear next to "Row style". Check the boxes, type in a comma into the "Separator" box.
To make the names link back to the user's page: In the Fields section, click on User:LastName (or whatever it's called), and check the box "Link this field to its user". Repeat for the User:FirstName field.
Get the O'Reilly book, "Using Drupal" (http://www.usingdrupal.com/). Worth every penny.