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.

eZ debug

Timing: Jan 18 2025 18:20:59
Script start
Timing: Jan 18 2025 18:20:59
Module start 'layout'
Timing: Jan 18 2025 18:20:59
Module start 'content'
Timing: Jan 18 2025 18:21:00
Module end 'content'
Timing: Jan 18 2025 18:21:00
Script end

Main resources:

Total runtime1.0265 sec
Peak memory usage4,096.0000 KB
Database Queries63

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0065 589.1719152.6406
Module start 'layout' 0.00650.0038 741.812539.4766
Module start 'content' 0.01031.0148 781.2891556.0313
Module end 'content' 1.02520.0013 1,337.320312.1250
Script end 1.0265  1,349.4453 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00370.3599160.0002
Check MTime0.00140.1335160.0001
Mysql Total
Database connection0.00100.095810.0010
Mysqli_queries0.965694.0604630.0153
Looping result0.00060.0583610.0000
Template Total0.992196.620.4960
Template load0.00230.227320.0012
Template processing0.989796.414220.4949
Template load and register function0.00030.026410.0003
states
state_id_array0.00080.082610.0008
state_identifier_array0.00070.070720.0004
Override
Cache load0.00190.1832320.0001
Sytem overhead
Fetch class attribute can translate value0.00110.103020.0005
Fetch class attribute name0.00110.109660.0002
XML
Image XML parsing0.00110.108420.0006
class_abstraction
Instantiating content class attribute0.00000.001470.0000
General
dbfile0.00070.0666160.0000
String conversion0.00000.001140.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
5content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
9content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
4content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 22
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs