How-to build an employee list with a search in it?

Permalink
Hello c5 community,

i have following feature to implement on our c5-website: an employee list (name, position, phone number, employee-image) and a text box where one can enter name and get all the information to the person.

Currently i don't know where to begin: can i use standard c5-search box for this? Do i need a new block? How to add employee data - is that just a bunch of pages on the site or all the data is saved in the block's table? How an editor can edit/remove data when for example a phone number changes?

Any help appreciated

AlexDuchovny
 
cannonf700 replied on at Permalink Reply
cannonf700
There a several ways to do this. One way would be to create a "User" for each Employee. Using the "Add User Attributes" you can create multiple fields that would display with the user - such as name, phone, email, favorite starbuck's drink - whatever. These profiles would then be displayed on the "Members" page that is part of the default installation of C5. An additional benefit of this would be requiring your employees to fill the information out themselves so you don't have to do. It would also create somewhat of a "intra-network" allowing your employees to message each other within the site.
just a thought.
AlexDuchovny replied on at Permalink Reply
AlexDuchovny
That's potentially a great idea! Adding/Removing/Editing users wouldn't be a problem since one can do it from the dashboard.
And to show them i can study concret's own users-and-groups page in the dashboard (did you mean this page when wrote about "Members page"?) and extract/show all the necessary data.

All in one - definitely a way to go. Thank you cannonf700!
cannonf700 replied on at Permalink Reply
cannonf700
C5 has a page as part of the sitemap called "Members" and if enabled will list your members on this page - like items are listed in the C5 marketplace.
AlexDuchovny replied on at Permalink Reply
AlexDuchovny
Hmmm.. couldn't find this page in my concrete 5.4.0.5.
cannonf700 replied on at Permalink Reply
cannonf700
When you installed you should of had some extra pages in your site map such as "Page Not Found" and "Page Forbidden" there is/was also a page called "Members".
It might depend on whether on your install you choose to install sample content or not...
AlexDuchovny replied on at Permalink Reply
AlexDuchovny
This is the reason - i didn't install sample content. I've found the page in concrete/concrete/single_pages/members.php - any way i can "enable" it? It isn't shown in the sitemap or anywhere else.
cannonf700 replied on at Permalink Reply
cannonf700
Not sure
try Dashboard> Pages & Themes> Single Pages.

the page might be listed here? try refreshing it. If not try adding it via the bottom button.

Also try copying the member.php that you found into your root/single_pages folder.

good luck.
synlag replied on at Permalink Reply
synlag
Hi,

maybe the contact directory is what you're looking for

http://www.concrete5.org/marketplace/addons/contact-directory/...
AlexDuchovny replied on at Permalink Reply
AlexDuchovny
Thx synlag,
this addon promises everything we need - sadly i can't see it in action - the only site that's using it is an intranet site :(
AlexDuchovny replied on at Permalink Reply
AlexDuchovny
I've found an article about creating single pages
http://www.concrete5.org/index.php?cID=2932&bID=713&arHandl...

and followed all the steps but all i see is a blank page. Not sure what the problem is - may be there were some changes in recent c5 versions.
cannonf700 replied on at Permalink Reply
cannonf700
I've been thinking about this...
If you go to: Dashboard> Users & Groups> Login and Registration and then enable registration and public profiles etc... It might create the members page for you. After getting your registration enabled go to Site Map and see if it's there - if not click the check bock on the far right of the screen to view system files. See if the page is there.
What I think is that after enabling the registrations your members page will be available at yoursite.com/index.php/members/
AlexDuchovny replied on at Permalink Reply
AlexDuchovny
Well, i've solved at least one mystery - it seems that one can't add a custom single page with a "reserved" name like for example "members". It seems to collide at some level with concrete's own single pages even if they are not enabled.
I've renamed my page to "employees" and suddenly i see some output there. Though it doesn't really work - core-members code uses some global variables like $userList which aren't initialized in my employees page.

The trick with enabling registration and public profiles didn't work :( Still no members page.
synlag replied on at Permalink Reply
synlag
Try clearing your chache. The members page should appear in the sitemap or nav.

The contact directory might have saved you some time.
AlexDuchovny replied on at Permalink Reply
AlexDuchovny
Nop. Cache cleared but members-page is still neither in sitemap nor in the nav.

I'm still in the evaluation phase so time isn't really lost. The way it looks now i will take contact directory - the problem is that i can't demonstrate it to the marketing before buying it.