Drupal 6 - 更改节点的作者

发布于 2024-10-08 07:06:34 字数 251 浏览 6 评论 0原文

有没有一种简单的方法可以将节点的作者更改为另一个用户?我好像找不到啊我找到了一个解决方法,即设置一个“操作”以将节点的作者更改为特定用户,然后临时设置一个“触发器”,以便每当我更新节点时,它都应该运行该操作。它有效,但很丑。我想我也可以直接攻击数据库,但这些似乎都是相当不优雅的解决方案。

我明白这不应该是一个常见的要求。发生的事情是这样的:我设置了网站,包括占位符内容,然后发布者用户将其填充为真实内容。这显然不是正确的处理方式,但这就是我发现自己所处的情况......

Is there an easy way to change the author of a node to another user? I can't seem to find it. I found a workaround, which was to setup an "action" to change the author of a node to a specific user, and then temporarily setup a "trigger" so that whenever i update a node, it should run that action. It works, but is ugly. I suppose I could also attack the db directly, but these both seem like rather inelegant solutions.

I appreciate this shouldn't be that common an requirement. This is what happened: I setup the site, including place-holder content, which the publisher users then populated with real content. This was clearly not the right way to go about it, but it's the situation I find myself in...

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

路弥 2024-10-15 07:06:34

您不能简单地编辑节点,展开页面底部附近的“创作信息”部分,然后更改“作者姓名”吗?

您还可以更改创作日期。

如果您需要更改大量页面的创作信息,我建议您使用视图批量操作。更改作者是选项之一。

Can't you simply edit the node, expand the Authoring Information section near the bottom of the page, and change the Author name.

You can also change the Authored on date too.

If you need to change the Authoring information of lots of pages, I'd recommend Views Bulk Operations. Changing the Author is one of the options.

日暮斜阳 2024-10-15 07:06:34

您不能简单地编辑节点,展开页面底部附近的“创作信息”部分,然后更改作者姓名吗?

应该注意的是,为了更改这些,必须为该帐户设置管理节点权限。如果这是不需要的(在生产环境中确实如此),您可以使用规则模块或使用 nodeapi 挂钩来更改所需的字段。

Can't you simply edit the node, expand the Authoring Information section near the bottom of the page, and change the Author name.

It should be noted that in order to change these the administer nodes permission must be set for that account. If this is undesired (and in production environments, it is), you can use the Rules module or use the nodeapi hooks to change the desired fields.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文