Monday 06 October 2008 1:52:55 pm
Correct me if i'm wrong, but i think you'll probably need some more things to get those /profiles/membername url. By default, when a user is added to database, you could read his data (obviously if you have right permissions) in url like http://www.yoursite.com/users/guest-accounts/somebodyname-somebodysurname. That's because there's a setting in your site.ini file who tells the system to store this new user under the folder with node id 12. You could also change the way the url for the user accounts is generated. by default, the url is built using the first name and the surname of the user. but you could probably change it so this url will be only the useraccount of the new user. After this, you can create a folder under the root content node called "profiles", and then change that site.ini setting to tell eZ that new users will be allocated under that folder. This way you could easily have urls like /profiles/nick. My doubt here is how to deal with roles for these users... it seems i cannot assign roles to folders (only to groups or user groups) but, on the other side, it seems i cannot create usergroups in the content section (at least by default...). so, other option could be to change the literal for the root of the user section from "users" to maybe "profiles" and put all the users under this node... Last option, but it will require some coding on your part, could be a custom extension. one view of this extension will receive the username as parameter. then, usign ez api you could get the data for this user...
|