Closed (fixed)
Project:
Automatic Nodetitles
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
18 Dec 2008 at 22:55 UTC
Updated:
20 Oct 2011 at 11:16 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
fagoindeed, that's missing quite a time..
I took your patch and improved it a bit. Most important I modified it to keep the old behaviour only when the preview button is pressed, this lets the node preview keep working with the autogenerated title. Then I optimized the nodeapi implementation and fixed its comment.
-> committed to 6.x-dev, please test.
Comment #2
fagoI've just ported this to 5.x-dev too - please test!
Comment #3
moshe weitzman commentedlooking at http://cvs.drupal.org/viewvc.py/drupal/contributions/modules/auto_nodeti.... You are assigning stuff to $settings bbut never using that. Perhaps that wqhy some claim this does not work. see http://drupal.org/node/321611#comment-1186332
Comment #4
fagoIt's used - in the next part of the if clause and also it's checked that $settings == TRUE with the assignment.
In my tests it did work fine - perhaps you could give it a test too?
Comment #5
Anonymous (not verified) commentedI'm not too sure if this is the proper issues to report my test, however with the latest dev version for 6 this does not work with computed fields. Anyway to fix this issue?
Comment #6
asb commentedHi,
I downloaded http://cvs.drupal.org/viewvc.py/drupal/contributions/modules/auto_nodeti..., but can't see any changes regarding the tokens availabe at /admin/content/types (I followed the trail from an issue of Computed field not making it's values availabe as Tokens).
I just wanted to enter the value from this 'auto_increment' field into the node title... which seems to be impossible in Drupal... Sigh...
Greetings, -asb
Comment #7
fagocomputed field should provide a token.
Anyway this issue is about something different, which should be fixed. Reopen, if there are troubles with that.
Comment #8
asb commentedIssue posted in Computed Field issue queue.
And no, at least for D5 the "computed field" does not provide a token, at least none I could find within the replacement patterns provided by "auto nodetitle".
Greetings, -asb
Comment #9
drewish commentedi was about to chime in that this totally wasn't work then realized that the last stable release was over six months ago. so now that there's some cool new features like this in there could we get a new release so that people won't be opening duplicate issues like: #360359: Batch update node titles (for D6)
Comment #10
fagoyep, that's my intention. I just wanted to wait a few days so I see whether people have troubles with it.
Comment #12
manuel garcia commentedI'm a bit confused here, does the latest stable 6.x release have this in? It doesn't seem to.... :X
Comment #13
manuel garcia commentedHere's a reroll of the patch for the latest 6.x, with a small change that only access the $settings if op is presave (and not everytime).
Comment #14
manuel garcia commentedOoops!
Completely ignore the previous patch, i made it in the wrong installation lol.
Here's the good one
Comment #15
manuel garcia commentedOK, completely ignore my previous comments... and dont try that patch, it'll break your installation.
there's already a hook_nodeapi implementation: