Share » Forums » Developer » How to change the User Register Form...

How to change the User Register Form to a GET method

How to change the User Register Form to a GET method

Thursday 05 October 2006 2:33:52 am - 5 replies

Modified on Thursday 05 October 2006 9:03:07 am by Luc Chase

Author Message

Ł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

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu