在drupal 7中用规则保存内容后为事件创建别名


creating an alias on event after saving content with rules in drupal 7

我创建了两条规则In 1st rules

event:-After saving a new user account

条件:-
用户有角色参数:用户:[account],角色:teacher.

行动:-创建一个新实体参数:实体类型:节点,内容类型:教师简介,标题:[account:name],作者:[account]创建实体(entity_created)

And In第二条规则:-

我带走了以下东西:-

Event:-保存新内容后。条件:-内容类型参数:内容:[node],内容类型:教师简介

行动:-创建或删除内容的URL别名参数:内容:[node], URL别名:node/[site:current-user]/edit.

第一条规则工作完美,但问题是第二条规则它使用url创建别名:node/anonymous/edit

我不知道这条规则有什么问题,任何人都可以帮助我。

Thanks in advance

必须有一个选项为"操作用户"或"当前用户"。如果用户以访问者的身份创建事件,并且没有为"用户"提供任何值,那么它当然会采用"匿名"!

代替令牌[site:current-user],您必须使用令牌[node:author:name]