Drupal 6 触发规则和规则集
我正在尝试创建一个规则/规则集:
- 当用户在网站上注册时触发
- 然后(取决于注册中包含的 CCK 字段值)将该用户添加到角色
- 然后将用户重定向到个人资料页面。
我尝试了无数次,但就是无法让它发挥作用。 我可以创建一个在注册时触发的触发规则(但不允许我执行所需的所有操作),也不允许我使用规则计划选择包含所需所有操作的规则集。 我不允许在触发规则下选择规则集的原因之一是“参数未传递”。
非常感谢任何帮助,或者也许是实现我想做的事情的另一种方式。
I'm trying to create a rule/ruleset that:
- Is triggered when a user registered with the site
- Then (depending on a CCK field value included in the registration) add that user to a role
- Then redirect the user to a profile page.
I've tried no end of times and simply can't get it to work.
I can create a triggered rule which fires upon registration (but doesn't allow me to perform all actions needed), nor does it allow me to select the ruleset with all the actions needed using rules schedular.
One of the reasons I'm not allowed to select the ruleset under a triggered rule is the "arguments are not passed".
Any help is really appreciated or perhaps another way of achieving what I'm trying to do.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我猜测您可能正在使用内容模块内容配置文件来将 CCK 内容类型用于用户配置文件,并且您在注册表单中可以看到内容配置文件字段。您的问题是您需要加载配置文件才能访问其中字段中的值。
最好的选择是使用 http://drupal.org/project/autoassignrole 来处理角色分配并然后,在用户登录后使用规则设置内容配置文件字段(如果您确实需要设置)。
I am gonna guess that you are probably using content the module content profile to use CCK content types for user profiles, and that you have the content profile fields visible in the registration form. your problem is that you need to load the profile to be able to access values in the fields there.
Your best bet is to use http://drupal.org/project/autoassignrole to handle the role assignment and then, use a rule to set the content profile field (if you really need to set that) once the user logs in.