Staff Directory w/ jQuery
There is one feature that I'm not entirely sure on the best process. It's a list of all of our staff. Clicking on a name will drop down in a jQuery Accordion the Phone Number and Email Address for that person. That's it...just three or 4 short lines for each person.
The most obvious thought is a Page List and creating a page for each person with a couple of attributes for Email & Phone Number...but that just seems like overkill, doesn't it? The data to be displayed isn't worthy of it's own page...it's just a few lines.
Is there a better way to do something like this aside from handwriting everyone out in a basic Content Block?
- You can easily create and add further attributes down the track, without having to do any coding.
- You can add a file attribute to the page to be able to add a staff picture
- You can add the page to the composer, giving you a really nice interface for adding future staff members
- You can use a page-list block and a custom template to output your staff list. You can easily make different templates for different purposes, including a drop down.
- If you want, you can actually make the pages themselves useful. You could have the staff page type automatically display the contact information, but you could have extra info there, a contact form, etc.
- It's not a big deal to exclude these pages from the nav, sitemap and search index.
- You could create a staff search quite easily too. (you can customise the search box only search a part of the tree, and you could customise the output to not link to the pages).
It actually makes no difference that you have an extra page in the system, we're only talking a few records in the database. As long as you keep the sitemap nice and tidy, I think the benefits of using pages greatly outweigh any negatives.
If I where to redo this I think I would redo as pages, then use a page list template to output a custom display.
One problem you may face with the block based approach is moving users from one department to another, if you are splitting them off into sections or in my case it was areas(I used three pages, though with the clipboard this may be easier now)
@JohntheFish & @TheRealSean, I looked at both of those add-ons and I didn't want to go with the User route simply because I don't need site users with passwords and usernames. I just need to display a simple staff directory.
Thanks for the input everyone.