We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

What is the best way to handle extra user parameters

Development and Programming

Ian Jones's avatar
Ian Jones
16 posts
15 years ago
Ian Jones's avatar Ian Jones

Hi all

I hope this is the correct area for this type of question.

I’m working on a site that businesses can sign up and then sell 1 type of widget. Each business just needs name, widget and price. Then there will be a page that shows all business, with their widget and price. There will also be a page for the business to log in and change their widget and price.

What is the best way to handle the extra parameters ‘widget’ and ‘price’?

From what I can work out there are two options

1/ Sign up the business as a user in a group with no admin privilages. Add the two custom member fields ‘widget’ and ‘price’ for the users and hide the other fields I don’t need (like birthday). To show these business I then grab the users.

or

2/ Sign up the business as a user in a group with no admin privilages. Then create a ‘business’ channel and to that channel add the custom fields ‘name’, ‘widget’, ‘price’, ‘user_id’. Then somehow link an instance of the business channel to the user. When I want to show these business I grab the details from the channel.

If it is the second option what is the best way to link the two instances?

Sorry if this is already answered somewhere. I’m not getting much luck from searching, most likely because i’m having trouble phrasing my question succinctly enough.

Thanks

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.