how to make two different registration forms?

Author Message

Vytautas Germanavičius

Thursday 31 March 2005 10:10:49 pm

i have 2 totaly different types of users, i created two additional classes in Users group.
Question is, how to make two different registration forms? Because /usser/register still show edit form for default User class.

{set-block scope=root variable=cache_ttl}0{/set-block}

Gustaf Carleson

Tuesday 19 April 2005 3:56:23 pm

Did you have any success achieving this?

Fabricio Guerrero

Thursday 21 April 2005 6:08:48 am

hi.. on a similar occasion i solved this a pretty dirty way..

I just send parameters and depending on this i would show one form or another.

if you know of a cleaner way please let me know.

Fabricio

http://www.solobromasychistes.com <<Joomla Site :P
http://www.recipesforhealthyfood.com/ <<Drupal Site :P
http://www.ezforge.com/ <<future ezCommunity, Articles, forums and more...

Daniel Beyer

Thursday 21 April 2005 6:28:38 am

eZ publish allows only one class per siteaccess as the "default new user class". You can set the class which should be used in section "[UserSettings]" with the setting "UserClassID=" in site.ini. Default is 4 which is the user class which comes with eZ publish. If you want to have to different user classes for registration you need to setup a different siteaccess to override that setting with it.

Note: You can set the default Group and the default placement, too! Just check section "[UserSettings]" in ste.ini for it.

You can get help with siteaccesses at:
http://www.ez.no/ez_publish/documentation/incoming/design/siteaccess_configuration
http://www.ez.no/ez_publish/documentation/configuration/configuration/site_access
http://www.ez.no/ez_publish/documentation/configuration/configuration/tips_tricks/several_sites_with_one_installation

Or search the docs for siteaccess.

Daniel Beyer
_________________________________
YMC AG
Kreuzlingen, Switzerland
web: www.ymc.ch
____________________________________

Gustaf Carleson

Friday 22 April 2005 5:40:15 am

So basically you mean setting up different sub-domain names for each user type using siteaccess?

For example:

http://userclass1.mysite.com/user/register
http://userclass2.mysite.com/user/register

Or am I getting you wrong?

/Gustaf

Bruce Morrison

Friday 22 April 2005 8:38:47 pm

You could always create your own module. It would basically be a copy of the user/register module and allow for both regristration pages to co-exist in the same site.

Cheers
Bruce

My Blog: http://www.stuffandcontent.com/
Follow me on twitter: http://twitter.com/brucemorrison
Consolidated eZ Publish Feed : http://friendfeed.com/rooms/ez-publish

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

Main resources:

Total runtime0.0190 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.0063 589.2891152.6406
Module start 'layout' 0.00630.0037 741.929739.4766
Module start 'content' 0.01000.0063 781.406397.3672
Module end 'content' 0.01630.0026 878.773438.3047
Script end 0.0189  917.0781 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002814.7482140.0002
Check MTime0.00126.2040140.0001
Mysql Total
Database connection0.00095.002410.0009
Mysqli_queries0.003417.934430.0011
Looping result0.00000.074210.0000
Template Total0.002211.810.0022
Template load0.00105.025010.0010
Template processing0.00136.736910.0013
Override
Cache load0.00073.595910.0007
General
dbfile0.00126.093480.0001
String conversion0.00000.051540.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