简体   繁体   English

批量节点保存为Drupal计算字段

[英]bulk node save for Drupal computed fields

Trying to calculate a (new) computed field on over 200 existing nodes. 尝试在200多个现有节点上计算(新)计算字段。

I've tried bulk saving them using VBO's 我已经尝试使用VBO批量保存它们

... none of these update the computed field. ......这些都不会更新计算字段。 Saving each node manually does. 手动保存每个节点。

Is there a way to accomplish this in bulk? 有没有办法大量完成这个?

EDIT: VBO's Execute arbitrary PHP script & node_save($object); 编辑:VBO执行任意PHP脚本&node_save($ object); does update the node, but does not update the node's term array when one term is deleted. 确实更新节点,但删除一个术语时不更新节点的术语数组。 Only manually editing/saving the node does that. 只有手动编辑/保存节点才能这样做。

Check out this issue: 看看这个问题:

http://drupal.org/node/195013 http://drupal.org/node/195013

Also, you could try using the Save action with Views Bulk Operations. 此外,您可以尝试使用“使用视图批量操作保存操作”。

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

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