Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Archive /

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, biapar, Willr, Ingo, simon_w

class UserAndAPageAtTheSameTime


Reply


2 Posts   1129 Views

Avatar
Nathan Cox

Community Member, 99 Posts

11 July 2007 at 11:00am

Hi, I was hoping for a bit of wisdom about a problem I'm having...

The site I'm making has Client objects that extend Page since their main role on the site is to show a page with the client's information on it. The thing is, the clients also need to be able to log in and edit their page themselves, so we need a Client member type. I don't want the site admins to have to create two objects each time they add a client, so I was wondering about the best way to do this:

Should I just make them Member objects and create a controller or something to display their data (although I'd really like the URLs to just be /user-name)?
Or is it good and do-able to have two separate objects and make the ClientPage create a ClientUser automatically when it's created?

Avatar
Sam

Administrator, 685 Posts

14 July 2007 at 3:48pm

I would probably create a controller to display members.

www.site.com/member/(username) or something.