简体   繁体   English

两种内容类型的内容配置文件作为用户注册Drupal

[英]Content profile for two content types as user registration Drupal

I want to use content profile for multiple content types for user registration. 我想对用户注册使用多种内容类型的内容配置文件。 Like I have business content type that I'll use for user how wants to register as business on my site and I have other as Company where company users will register as Company. 就像我有一个业务内容类型,我将用于用户要如何在我的网站上注册为公司,而我拥有另一个公司一样,公司用户可以将其注册为公司。

Now I've selected use on registration page but I'm only getting business content type for registration and not company. 现在,我已经在注册页面上选择了用途,但是我只获得用于注册的业务内容类型,而不是公司。 I want both on different url for registration as they are different roles and content types. 我希望两者都使用不同的URL进行注册,因为它们的角色和内容类型不同。

I'm using drupal 6. 我正在使用drupal 6。

Thanks in advance for your help. 在此先感谢您的帮助。

You should use Auto Assign Role Module http://drupal.org/project/autoassignrole , you will have to fill the settings in the Assign from Path section in admin/user/autoassignrole, you will find options for each role. 您应该使用自动分配角色模块http://drupal.org/project/autoassignrole ,您必须在admin / user / autoassignrole的“从路径分配”部分中填写设置,才能找到每个角色的选项。

Also you must check the "use on registration" option in the content profile section of each content type. 另外,您还必须选中每种内容类型的内容配置文件部分中的“注册时使用”选项。

According to your requirements best way to use it is to go with profile2 and profile2_regpath modules. 根据您的要求,使用它的最佳方法是使用profile2profile2_regpath模块。 Combination of these modules allows you to create different user registration form with different fields for different user roles with different urls. 这些模块的组合使您可以为具有不同URL的不同用户角色创建具有不同字段的不同用户注册表单。

This is link of tutorial where you can find proper step to create this functionality: http://drupixels.com/blog/registration-multiple-user-roles-different-registration-pages-profile-2-module 这是教程的链接,您可以在其中找到创建此功能的适当步骤: http : //drupixels.com/blog/registration-multiple-user-roles-different-registration-pages-profile-2-module

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM