Forums / Developer / Add new field to the user registration form
D K
Tuesday 02 December 2008 10:07:28 pm
Please help me with codes and file locations how to add new checkbox filed to the user registration form.
I am new to ez publish. So I have seen that there is a loop of attributes in user/register.tpl. But I cannot find how that attributes set.
http://www.eyepax.com
Bruce Morrison
Wednesday 03 December 2008 12:04:12 am
Hi D K
I think it's a matter of simply adding the required attributes to the default user class. user/register creates an empty user object and as you say the attributes are looped and displayed.
CheersBruce
My Blog: http://www.stuffandcontent.com/ Follow me on twitter: http://twitter.com/brucemorrison Consolidated eZ Publish Feed : http://friendfeed.com/rooms/ez-publish
Wednesday 03 December 2008 2:44:36 am
Thanks Bruce.
I am really fresh in ez publish. Can you please explain where I can change the class.
Thursday 04 December 2008 2:19:58 am
I'd recommend you do some reading before going too far. Check out http://ez.no/doc/ez_publish/technical_manual/4_0 & http://ez.no/doc/ez_publish/technical_manual/4_0/concepts_and_basics/content_management/the_content_class for an understanding of content classes.
To edit the user content class you need to Click on the "Setup" Tab Click on "Classes" from the left menu Click on the "Users" Class group Click on the Edit Icon next to the "User" content classYou can now add the checkbox attribute from the Attribute selector at the bottom of this page.
HTH
Sunday 07 December 2008 8:47:12 pm
Thanks.
I have done the modification.