Closed (duplicate)
Project:
Node Auto Term [NAT]
Version:
master
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
14 May 2007 at 20:27 UTC
Updated:
5 Mar 2008 at 01:43 UTC
Jump to comment: Most recent file
Comments
Comment #1
Zen commentedThis is a non-trivial task as one doesn't really know anything about the node form fields etc.
I am however happy to look at patches :)
-K
Comment #2
JacobSingh commentedHere's my first pass @ TAN
Comment #3
guardian commentedthe submitted patch file is empty
Comment #4
jpsalter commentedI have a need for this too. Can the empty patch be reloaded? Thanks.
Comment #5
jpsalter commentedI went ahead and built the function for myself. This isn't tested very much. But, it did work for my setup.
Comment #6
jpsalter commentedSorry, I forgot to set the status to patch.
Comment #7
jpsalter commentedTwo additional things
--this code works only when you sync (this was the use case I had)
--the patch is against 5.x-2.1 not HEAD
If there is a desire to hook this up to term creation - I'll look into it.
Comment #8
Zen commentedJason,
Thanks for the patch. Would it be possible to refactor it to make the entire feature optional? Add a checkbox on the sync page and so on. Similarly, as you've stated, hooking this into term creation will also be desirable - again, optionally. IMO, an appropriate warning stating that only the title and body fields of the node will be populated will also be appreciated.
Please also try to stick to the code style as prescribed for core - that will save me some work :)
Thanks!
-K
P.S. Perhaps this could be a way of introducing some pseudo-revision support for terms (create a new revision of the node if the node type by default creates revisions).
Comment #9
jpsalter commentedZen - thanks for the ideas. I'll have time next week to work on it.
Comment #10
jpsalter commentedPatch for this posted here: http://drupal.org/node/218005