How to disable form fields on register page?

Author Message

John Moritz

Wednesday 01 July 2009 2:23:56 am

How can i disable form fields of some userattributes like „first name“ or last name“ on the register page and the useredit (self) page?

The user should see the „first name“ and “last name” fields only on useredit page but not on the register page. I also added a field for facebook_connect. This field should never be seen by a user.

Gaetano Giunta

Wednesday 01 July 2009 4:13:57 am

Override the template used by user/register so that it only has visible input fields for the fields you want and hidden ones for the fileds you do not want? nb: not a very secure solution, but it might be combined with a content edit handler to do some verification afterwards...

Principal Consultant International Business
Member of the Community Project Board

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 19 2025 23:43:23
Script start
Timing: Jan 19 2025 23:43:23
Module start 'layout'
Timing: Jan 19 2025 23:43:23
Module start 'content'
Timing: Jan 19 2025 23:43:23
Module end 'content'
Timing: Jan 19 2025 23:43:23
Script end

Main resources:

Total runtime0.0156 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0050 590.4219152.6406
Module start 'layout' 0.00510.0031 743.062539.4766
Module start 'content' 0.00810.0058 782.539189.2734
Module end 'content' 0.01390.0016 871.812530.3047
Script end 0.0156  902.1172 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002214.0730140.0002
Check MTime0.00106.3224140.0001
Mysql Total
Database connection0.00106.388210.0010
Mysqli_queries0.003019.400030.0010
Looping result0.00000.276710.0000
Template Total0.00138.410.0013
Template load0.00074.501410.0007
Template processing0.00063.886710.0006
Override
Cache load0.00053.214010.0005
General
dbfile0.00148.866780.0002
String conversion0.00000.045940.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs