Closed (fixed)
Project:
Automatic Nodetitles
Version:
5.x-1.1
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
15 Oct 2008 at 14:03 UTC
Updated:
24 Feb 2009 at 10:20 UTC
Jump to comment: Most recent file
Comments
Comment #1
fagoI agree that this would be a nice feature, anybody?
Comment #2
Gerald Mengisen commentedI'll look into this; I've needed this too often myself. I'm relatively new to Drupal development, so this might take a while.
Comment #3
moshe weitzman commentedThis can be done with views bulk operations module once we commit #348860: Operate during nodeapi('presave'), not node form submit handler
Comment #4
alex72rm commentedNice? It should be a *wonderful* feature! (I have more than 700 old contents to update!)
I noticed that it's necessary to automatically update only the title...
Comment #5
fagoThe mentioned issue has been fixed in the dev branch - so please test the method described.
Comment #6
alex72rm commentedI'm trying the new -dev version, but I don't find how to batch update node title.
Can you explain?
Thanks a lot,
Alessandro
Comment #7
Gerald Mengisen commentedSame here, I don't see any code that would allow the bulk update neither in 5.x or 6.x
Comment #8
Gerald Mengisen commentedI had some time at hand, so I looked into this a bit more. Here is a patch against the 5.x branch of the module. Please have a look (also if the patch format is correct; I'm not used yet to CVS).
Thanks,
Gerald
P.S. (edit): Note that the node only gets saved if the newly calculated title is different from the old one.
Comment #9
moshe weitzman commentedThis patch is sort of not needed anymore, since titles are recalculated during nodeapi(presave). If you do *anything* on the admin/cotnent/node or in views bulk operations, you will get your new title
Comment #10
rokrI tried to unpublish/publish some nodes on admin/cotnent/node. Node title didn't change to the new pattern.
(using dev-version 2008-12-31)
Comment #11
Gerald Mengisen commentedMoshe,
Thanks for your feedback. The two patches are not mutually exclusive; I'd be happy if both were accepted (I can also create a patch for D6). If I just want to update node titles, I can run the explicit action, otherwise I know now that any other action will update them, too. It would be odd if I had to unpublish/republish nodes just to update the node title.
Comment #12
moshe weitzman commentedYeah, I'll agree that it would be reasonable for ANT to offer a node operation that secretly did nothing but mark the node for saving.
Comment #13
rokrGerald, thanks for the patch. Works great for me. Exactly what i was looking for when i opened this issue.
You can also use it with View Bulk Operations as moshe mentioned. Perfect!
cheers, Ronald
Comment #14
rokr(Comment deleted, double entry)
Comment #15
fagothanks, I've just committed it to 5.x-dev - however I forgot to give you credits for your patch. SRY!
I've fixed a code style issue: it's
if () {- please watch out for that.A patch for d6 would be great.
Comment #16
patchak commentedJust to make sure, is it now possible to bulk update the titles with the dev version for Drupal 6 as well, or we are still waiting for the patch mentionnedi in comment no. 3 to get in??
Patchak
Comment #17
Gerald Mengisen commentedPatchak,
I'll be creating a D6 patch for the bulk update in the admin section as requested by fago in comment no. 15. It's going to take me about a week from now (I have first to set up the D6 test environment).
Comment #18
KG2 commentedsubscribing
Comment #19
Gerald Mengisen commentedPatch for Drupal 6 created here: #360359: Batch update node titles (for D6)
Comment #20
fagoI've backported the fixes from 6.x - see #360359: Batch update node titles (for D6) to 5.x-1.x-dev.