many users belong to a company - how to structure?

14 years 2 months ago #126899 by maddunr
Hi,

Let's take a situation where there are many employees to a company (say 10 employees) and many companies (say 100).

The company info remains the same across the employees from that company. So, is there a way to show company info for each employee (user) without having to repeat the company data across multiple users (assuming that's even possible).

So, basically, company data is kept separate from user data. And users are related to companies.

If this is possible with CB, can someone please give me some ideas on setting this up?

Thanks,
V

Please Log in to join the conversation.

14 years 2 months ago #126950 by krileon
Doesn't seam like something for CB; I'd recommend some sort of business directory like extension. You can check such extensions on JED here .


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in to join the conversation.

14 years 2 months ago #126962 by maddunr
Hi Kyle,

Thanks for the quick reply and suggestion. I'll take a look at the directory.

However, do you know if any of these work well with CB? I'll still need CB to get the users to register (need more info on them than basic Joomla offers) and maintain their individual profiles.

I could use the directory to maintain company profiles, and, hopefully, associate users with companies and show this info on their CB profiles.

Thanks,
V

Please Log in to join the conversation.

14 years 2 months ago #126986 by krileon
Yes, CB will be capable of meeting your profile needs. You could also just use a drop-down field which contains all the companies; users could then select from the drop-down their company. However, your suggest approach is best by using a directory extension for the companies.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in to join the conversation.

14 years 2 months ago #126993 by maddunr
Kyle,

Yes, using the dropdown for companies was precisely what I was thinking, too. But I am not sure how to do this as part of the signup process - i.e. how do I offer the list of companies from the business directory in the registration form?

Thanks for all your help and suggestions.

- V

Please Log in to join the conversation.

14 years 2 months ago #127091 by krileon
If you want to offer a list of companies from your business directory you'll need a new CB fieldtype plugin to provide a drop-down select of those companies obtained via query. You could optionally also just use a drop-down field from Field Management and manually input the companies. See document subscriber available file fieldtype and ajax text fieldtype for examples to build fieldtype plugins. You could also examine cb.core.php which contains all of CBs fieldtypes.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.169 seconds

Facebook Twitter LinkedIn