Changing content, how to update all?
bjraines - October 25, 2009 - 20:17
I am looking for a way to update all my content at once
I changed some CCK arrays and i need to "resave" all my content for it to take effect
I am looking for a way to update all my content at once
I changed some CCK arrays and i need to "resave" all my content for it to take effect
_
I don't know of any way to do this through the UI, but you could easily do it with a loop in a 'php code' page with http://api.drupal.org/api/function/node_save.
_
Don't be a Help Vampire - read and abide the forum guidelines.
If you find my assistance useful, please pay it forward to your fellow drupalers.
Have a look at View Bulk
Have a look at View Bulk Operations.
gpk
----
www.alexoria.co.uk
_
that's the first place i looked-- i didn't see any obvious way to bulk resave nodes. Did i miss something?
_
Don't be a Help Vampire - read and abide the forum guidelines.
If you find my assistance useful, please pay it forward to your fellow drupalers.
i think someone said it could
i think someone said it could be done with Rules but I am not sure how
I changed several things with my cck and i have 10,000 of these node types, i do not want to do it individually
Free Chemistry Tutoring - www.mychemistrytutor.com
_
For that many I would definitely write a little php loop to do it, but ymmv.
_
Don't be a Help Vampire - read and abide the forum guidelines.
If you find my assistance useful, please pay it forward to your fellow drupalers.
VBO has a "save post"
VBO has a "save post" operation.
gpk
----
www.alexoria.co.uk
_
Nice! I can't believe I missed that. Even so though-- with 10k nodes it might still take some nontrivial amount of key clicks depending on how many nodes you can list in the view, lol.
_
Don't be a Help Vampire - read and abide the forum guidelines.
If you find my assistance useful, please pay it forward to your fellow drupalers.
>nontrivial amount of key
>nontrivial amount of key clicks
The browser will take the strain because you can select all by clicking in the table header. If you define say 100 nodes per page, and use the "select across all pages" button, then not too many clicks at all! (and the browser will also not mind too much ;) ). Make sure to use batch API or Job Queue module to do the actual processing/saving of the nodes (see the Settings for the Bulk Ops "style").
gpk
----
www.alexoria.co.uk