Extending User Classes

Author Message

Tristan Koen

Wednesday 11 June 2003 6:11:45 am

The basic user class has attributes for an users name, email address and password. How would one go about extending the user class to include additional attributes?
For example, a user might use forums. From the forum, we may wish to store attributes against the user that record the number of posts, or possibly an ICQ number.
On the same website, we may have a store, for which we would require a delivery address for that user.

What is the best way to allow customisation of each user? i.e. we would have some 'basic' users, some users with 'forum' attributes, some users with 'store' attributes and some users with everything.

I am still desperately trying to come to grips with ezPublish, so please answer as if you are talking to a complete idiot.

Thanks

Jan Borsodi

Wednesday 11 June 2003 7:44:37 am

Extending user (as with all content objects) are done using the class edit interface (Use the setup tab at the top).
You can edit the User class and add more attributes. If you wish you can also duplicate the class to have one class per user type or you could add an attribute which decides the type of the class.

You can take a look at this for some examples:
http://ez.no/manual/user/everyday

--
Amos

Documentation: http://ez.no/ez_publish/documentation
FAQ: http://ez.no/ez_publish/documentation/faq

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