Friday 25 November 2005 5:05:21 am
Hi Natalia, if I understand you correctly I believe what you are trying to do is create a page (or pages) where users can view other users information? This tells me you don't want them to be able to see each others passwords, but Name, email, ICQ, MSN etc. should be public. If this is the case I would suggest you do this with templates and "roles & policies". Basically you can output user information into a template but usualy this information would only be accessible by the owner. So you would need to create a "role" that would allow users to see "permitted" information (name etc.) but hide "privileged" information (password etc.), likewise you will have to create a template to fetch this information. This would bypass the need to create a second class (the Person class). Unfortunately I'm not sure how to do this, but I will look into it for you, if you consider this forum for a moment I can see your name, the date you joined and your avatar (if you had one), but not your password or email address. This means the answers to what you are trying to do may be found in the templates for the eZforums, if they can display this information here it should be possible to do something similar in a contact list. I will take a look at some templates and see if I can help, in the mean time, I suggest you look at the forum templates to see how they fetch this information. Also if anyone knows what sort of roles and policies it would take to set this up please let us know, I think it would benefit many people who may come across similar needs. Cheers!
Pardon me while I burst into flames...
|