我的网站上有两种类型的用户:
- 普通用户
- 供应商
我如何设置 Drupal,以便您可以在注册之前选择您想要成为的用户类型,然后(这是棘手的部分)为不同的用户类型提供不同的个人资料字段?
最佳答案
考虑Auto Assign Role模块。以下是关于它的引用(来自模块的项目页面):
... serves three primary purposes. The first is to provide an automatic assignment of roles when a new account is created. The second is to allow the end user the option of choosing their own role or roles when they create their account. The third is to provide paths that will trigger a specific role when an account is created. The administrator has full control over these functions and can have them working together or independently of each other. Auto Assign Role is integrated with the Content Profile module so that you can have content types serving as registration pages. You can even replace the default user/register page with a customized version of your own design.
关于drupal - Drupal 6 中允许不同用户类型注册吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2927660/