Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By iwant2fly on
I have about 5000 nodes that we initially did not allow commenting on. I now want to allow comments on them. How can I bulk update those nodes to allow comments? The module Mass Change sounds perfect but it is only for D5 & 6.
Comments
Use views bulk operations !!
You can do it with the help of views bulk operations by creating view of that content type and adding field "bulk operation content".
Hth
S
Yes, VBO can do the trick
Yes, VBO can do the trick with zero coding.
You will not find a "allow comments" action but there is a "modify entity values" action that you can choose comment status in the next step.
Set the value to 2 (numeric) to enable comments and read/write.
1 is read only, 0 is for disabled.
What's new and changing in PHP 8
This did the trick. Took a
This did the trick. Took a good while to update that many nodes, but other than that perfect. Thank you very much. That is an awesome module.
---
Also possible to bulk change through the database (I never had luck getting VBO to do anything other than give me a headache :)
This really only works if you have a distinguishing factor (one content type for instance, after a certain date, etc. This post gives you the queries you'd need to run (one for the node table and one for node_revision).