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, Ed, biapar, Willr, Ingo

class UserAndAPageAtTheSameTime

Go to End

2 Posts   1320 Views

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?


Administrator, 690 Posts

14 July 2007 at 3:48pm

I would probably create a controller to display members. or something.