Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I need to create two separate registration forms for over- vs under-18 users with completely different sets of fields. Is there a way to activate multiple different Content Profile content types for anonymous users depending on the URL they're on? I'm happy to code it myself, just need a pointer in the right direction.
Comments
Comment #1
greenbeans CreditAttribution: greenbeans commentedOK, I can't even get both content types to show on a single registration form at once. Am I doing something wrong?
EDIT: Never mind. Got it working. Here's the relevant code. It basically just reverses everything done in content_profile_registration_form_alter() ... there's probably a better way to do this:
Comment #2
manoloka CreditAttribution: manoloka commentedcheck this #313341: setting up various content types for different roles
Comment #3
Rosamunda CreditAttribution: Rosamunda commentedCould something like this be implemented into content profile module itself?
Comment #4
Equ CreditAttribution: Equ commentedSubscribe
Comment #5
momper CreditAttribution: momper commentedsubscribe
Comment #6
keyo CreditAttribution: keyo commentedsubscribe.
Auto assign role module is worth looking at since it can provide multiple registration forms for different roles on separate urls/tabs/menus.
http://drupal.org/project/autoassignrole
Comment #7
kenorb CreditAttribution: kenorb commentedRelated issue: #319043: Page is redirected to existing user profile on creating profile for another user
Comment #8
cyrusvhadsupper CreditAttribution: cyrusvhadsupper commentedsubscribing
Comment #9
doublejosh CreditAttribution: doublejosh commentedWould love Content Profile and Auto Assign Role to place nice.
All registration pages show all profile field from all content profile types.
Comment #10
mmilano CreditAttribution: mmilano commentedsubscribe: this would be a highly valuable feature.
Comment #11
mmilano CreditAttribution: mmilano commented#1 didn't end up working for me with my custom content types, so I added a few lines to content_profile_register.module. I posted about it here: http://drupal.org/node/870644
Comment #12
ayalsule CreditAttribution: ayalsule commentedsubscribing
Comment #13
kenorb CreditAttribution: kenorb commentedDrupal 6 is no longer officially supported. If you think this issue is still relevant for 8.x, feel free to re-open.