How to change the User Register Form to a GET method

Author Message

Luc Chase

Thursday 05 October 2006 2:33:52 am

I need to temporarly allow the user register form to work using the GET method. But when I change the method in the template, although I can now see the variables in the URL string, it does not actually register the new user. Is there a setting or a line of code I can alter to temporarily allow the GET method?
<b>This is for a semi-automated bulk data import from a spreadsheet.</b> Would create new records with just two mouse clicks per record.

The Web Application Service Provider

Łukasz Serwatka

Thursday 05 October 2006 2:51:58 am

This is not possible with current /user/register module. You will need to hack it (not recommend) or write new one.

However you can use {$view_parameters.var} and pass some values via url.

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Luc Chase

Thursday 05 October 2006 3:25:20 am

That sounds like it would help as the fields would be populated with the appropriate value and I would then just need to click the submit button. Also the sequence ID for UserID would be correct each time. But can I somehow use {$view_parameters.var} as the default value in my class definition?
The default template loops through the class attributes ( using attribute_edit_gui) picking up their properties, including default values on the way.
Or maybe in can insert {$view_parameters.var} into the template used by attribute_edit_gui ? Which template is that?
Or would it probably be easier to just construct an override template using it?

The Web Application Service Provider

Łukasz Serwatka

Thursday 05 October 2006 3:57:00 am

Or would it probably be easier to just construct an override template using it?

Yes, that is the best option. Then you will have full control on the ouput and content class attributes, using edit_view_gui you can display only needed fields rest hide with hidden fields for example.

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Luc Chase

Thursday 05 October 2006 4:35:09 am

Working! Thanks very much!

The Web Application Service Provider

Łukasz Serwatka

Thursday 05 October 2006 5:08:10 am

Great! You are welcome, Luc ;)

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

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 09:54:45
Script start
Timing: Jan 19 2025 09:54:45
Module start 'layout'
Timing: Jan 19 2025 09:54:45
Module start 'content'
Timing: Jan 19 2025 09:54:46
Module end 'content'
Timing: Jan 19 2025 09:54:46
Script end

Main resources:

Total runtime0.9117 sec
Peak memory usage4,096.0000 KB
Database Queries66

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0061 589.3047152.6406
Module start 'layout' 0.00610.0036 741.945339.4766
Module start 'content' 0.00970.8994 781.4219568.0000
Module end 'content' 0.90910.0026 1,349.421916.1250
Script end 0.9116  1,365.5469 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.3658160.0002
Check MTime0.00140.1483160.0001
Mysql Total
Database connection0.00090.095710.0009
Mysqli_queries0.851593.4000660.0129
Looping result0.00070.0757640.0000
Template Total0.875696.020.4378
Template load0.00220.246320.0011
Template processing0.873395.786920.4366
Template load and register function0.00020.025010.0002
states
state_id_array0.00100.112910.0010
state_identifier_array0.00110.116720.0005
Override
Cache load0.00180.2002230.0001
Sytem overhead
Fetch class attribute can translate value0.00070.075620.0003
Fetch class attribute name0.00140.155570.0002
XML
Image XML parsing0.00080.092420.0004
class_abstraction
Instantiating content class attribute0.00000.002590.0000
General
dbfile0.00090.1000180.0001
String conversion0.00000.001040.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
6content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
6content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 20
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs