Forums / Setup & design / [Solved] Custom user class / Register form
Jeremy B.
Tuesday 28 July 2009 2:20:15 am
Hi all,
I've created a new user class, that will be used for user registration.This new class just have those attributes :
Name Firstname Address
I'll add the "user_account" attribute, but for now I just want to see if all is working as I expected.
I created this class (id 19) in a "projet" class group (id 5)
So I configured my site.ini with :
[UserSettings] UserClassID=19 UserClassGroupID=5
as explained in this tutorial : http://ez.no/Exponential/documentation/incoming/tutorial_using_user_register
My file is located under <i>extension/myExt/settings/site.ini.append.php</i>
After cleared all the caches, when i go to user/register I see again the normal registration form, with the basic attributes, instead of viewing the attributes of my custom user class.
I'm using EZP 4.1.3
Am I missing something ?
Thanks for your help :)
Tuesday 28 July 2009 4:28:03 am
I've also tried to duplicate the existent user class (same class group), and modifiy the UserClassID in site.ini but i've got the same result.
Can anyone help please ?
Thanks
Peter Keung
Tuesday 28 July 2009 8:37:36 am
Two suggestions:
- Add the "User account" attribute just to make sure the class is recognized as a valid user class- Clear your browser cache. The user/register page checks for the existence of a cookie variable. If your browser still has that variable, the same form is displayed.
http://www.mugo.ca Mugo Web, eZ Partner in Vancouver, Canada
Tuesday 28 July 2009 8:47:54 am
Hi Peter,
Yes, that was the cookie ! I finally managed to make the form works but I didn't know why...The cookie is the point !
Thanks :)