Add new field to the user registration form

Author Message

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.

Cheers
Bruce

My Blog: http://www.stuffandcontent.com/
Follow me on twitter: http://twitter.com/brucemorrison
Consolidated eZ Publish Feed : http://friendfeed.com/rooms/ez-publish

D K

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.

http://www.eyepax.com

Bruce Morrison

Thursday 04 December 2008 2:19:58 am

Hi D K

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 class
You can now add the checkbox attribute from the Attribute selector at the bottom of this page.

HTH

Cheers
Bruce

My Blog: http://www.stuffandcontent.com/
Follow me on twitter: http://twitter.com/brucemorrison
Consolidated eZ Publish Feed : http://friendfeed.com/rooms/ez-publish

D K

Sunday 07 December 2008 8:47:12 pm

Thanks.

I have done the modification.

http://www.eyepax.com

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