Forums / Developer / How to change the User Register Form to a GET method

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