So... lost...

So... lost...

Monday 15 August 2005 12:12:13 am - 5 replies

Author Message

David Eriksson

Monday 15 August 2005 12:53:24 am

Update the user objects with the new attributes you need, then just use templates to display what you want.

/David

James Carr

Monday 15 August 2005 1:45:11 am

Yeah, but it seems like there would be some kind of "object" to link to a user, like a "user details" object or something that includes their address, graduation date, etc.

Of course, I guess I may just be thinking too much object oriented and expecting the system to behave that way.

David Eriksson

Monday 15 August 2005 3:53:12 am

Well, you could do that, and create an object relation. But if all users should have that data, and the data shouldn't be the same for any two users, wouldn't it make more sense to have it as part of the user?

/David

James Carr

Monday 15 August 2005 6:13:09 am

Thanks, I guess you are right. However, how can I enforce certain rules and such on attributes of an object? Like I spoke earlier, I'd like to let people choose if they ant their address publicly visible or not. Also, I will need to group people by graduation year as well so that people can view them.

Gabriel Ambuehl

Monday 15 August 2005 6:57:28 am

Add checkboxes to define what they want visible and just look for those in the template code.

Visit http://triligon.org

You must be logged in to post messages in this topic!

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.