This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

ben7308
ben7308

Hi guys!

I hope i can make myself clear on this subject.

At this moment me and my business partner are drawing out the details of a new project we are working on. This project has to contain 3 different user types.

User type one: Normal users with only a profile and the ability to apply to markets and events User type two: Market masters who can manage different markets they host User type three: Event managers that can host events on different dates

I think we need three different kinds of registration forms for this, but i'm not really sure. Does anybody of you ever worked on this in association with OctoberCMS?

Thank you!

Renatio
Renatio

Hi,

I recommend you to install those plugins Frontend User Roles Manager Plugin and RainLab User.

You will probably have to extend User Plugin to get exactly what you want to acomplish. There is a video how you can do it here.

Happy coding :)

ben7308
ben7308

Thanks for your reply Renatio! That video really helps!

alxy
alxy

You could consider making Type 2 & 3 (those, that are kind of administrators) backend users. (You can create backend-user groups).

Regular users should be handled by the RainLab.User plugin, as they dont need (and should not have) access to the backend.

LMBdev
LMBdev

I know this is an old post but I am in a similar situation. However, the suggestion to use Frontend Roles does not seem to apply.

My app also has 3 different types of Frontend users: Users, Employers, and Staff. I am currently using RainLab.User groups to differentiate between the three.

My dilemma is that each type of user shares some basic information: First and last name, email address, and password. However, beyond that, much of the model data is different.

For instance, my employers need a phone number, company, title, and address associated with them.

My staff members need a phone number, company and title as well.

There are additional fields and information for the different groups but I don't think its necessary to get into the rest of the details.

What I did was create my own models for Employer and StaffMember that basically piggy backs on the default User model in RainLab.User, but I have changed the config_fields and config_form files to fit my needs.

However, all of my data is stored in the one users table created by RainLab user. I'm concerned this may not be the best practice.

The reason I approached it this way is that I wanted to maintain/keep the basic account, session, and other functions of the RainLab.User plugin.

Not sure if this clarifies the question here or even presents my problem in an understandable way, but I happened to find this post and wanted to chime in.

Nevertheless, OctoberCMS and the community have been a joy to work with and I learn something new about it every day.

1-5 of 5

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.