customizing the register template

Author Message

zaxofeel .v

Monday 18 April 2005 1:04:35 am

Hi All,

the register template uses the following code to display the registration attributes.

{section name=ContentObjectAttribute loop=$content_attributes sequence=array(bglight,bgdark)}
<input type="hidden" name="ContentObjectAttribute_id[]" value="{$ContentObjectAttribute:item.id}" />
{$ContentObjectAttribute:item.contentclass_attribute.name}
{attribute_edit_gui attribute=$ContentObjectAttribute:item}
{/section}

can I control theses attributes to create a custom register page? i mean removing unwanted fields for example.

Thanks All

Tore Skobba

Tuesday 19 April 2005 2:13:12 am

Sure you can customzie the register page as much as you want. But certain elements should not be removed (i.e. username, password, meta data etc...). You should probably first define what an user class should contain then customize the register page.

zaxofeel .v

Tuesday 19 April 2005 4:52:25 am

Thanks Tore for your reply,

but as you can see from the code, i don't know how to display a certain field or to remove it.

i mean, where does these elements of the form come from to customize it?

i hope i cleared the problem enough.
thanks again.

Paul Forsyth

Wednesday 20 April 2005 12:57:08 am

Have a read of this tutorial:

http://ez.no/ez_publish/documentation/incoming/tutorial_using_user_register

paul

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 30 2025 21:26:39
Script start
Timing: Jan 30 2025 21:26:39
Module start 'layout'
Timing: Jan 30 2025 21:26:39
Module start 'content'
Timing: Jan 30 2025 21:26:39
Module end 'content'
Timing: Jan 30 2025 21:26:39
Script end

Main resources:

Total runtime0.0232 sec
Peak memory usage6,144.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0047 588.1328151.2109
Module start 'layout' 0.00470.0032 739.3438220.6875
Module start 'content' 0.00790.0141 960.0313997.8984
Module end 'content' 0.02200.0012 1,957.929733.9922
Script end 0.0232  1,991.9219 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002510.7845140.0002
Check MTime0.00114.5294140.0001
Mysql Total
Database connection0.00062.721510.0006
Mysqli_queries0.00219.117330.0007
Looping result0.00000.047210.0000
Template Total0.00093.710.0009
Template load0.00072.811910.0007
Template processing0.00020.857210.0002
Override
Cache load0.00041.937210.0004
General
dbfile0.002812.180780.0004
String conversion0.00000.026740.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