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

_

WorldFallz - October 25, 2009 - 22:09

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

gpk - October 25, 2009 - 23:02

Have a look at View Bulk Operations.

_

WorldFallz - October 25, 2009 - 23:12

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

bjraines - October 25, 2009 - 23:30

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

_

WorldFallz - October 25, 2009 - 23:35

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"

gpk - October 26, 2009 - 08:24

VBO has a "save post" operation.

_

WorldFallz - October 26, 2009 - 13:57

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

gpk - October 26, 2009 - 18:07

>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").

 
 

Drupal is a registered trademark of Dries Buytaert.