Adding the node-term relation in hook_submit works in a module I wrote; it gets overwritten in hook_insert.

hth,

Davide

Idan Arbel ha scritto:
I've created a module that does what I need based on the nat module.

If anyone wants to take a look and test I'll upload it.

One problem that I have is that taxonomy_node_save runs after my module and
deletes all the node-term relations. If found a fix that if I change the
module name to start with a letter after T then my module runs last. This
feels a bit of a hack to me and I'm looking for another solution.

Also, any way to hide the taxonomy selection fields when I create a node?


Idan

-----Original Message-----
From: support-bounces@drupal.org [mailto:support-bounces@drupal.org] On
Behalf Of Greg Knaddison
Sent: Wednesday, November 14, 2007 12:58 AM
To: support@drupal.org
Subject: Re: [support] Taxonomy auto tags help

On Nov 13, 2007 12:15 PM, Idan Arbel <idan@arbel-designs.com> wrote:
  
I'd like to set up terms in a hierarchy with multiple levels.
 Now every time a node is edited or created, I'd like for the node to be
linked to to each term according to the content. If the word book apears
    
in
  
the node body or node title and I have a term book. I'd like the node to
    
be
  
tagged with that term, and all others.

Anyone know of a module or technique for doing this?

    

Two potentially useful modules:
http://drupal.org/project/yahoo_terms
Which uses the "yahoo term extractor" to determine applicable tags
based on your content.

http://drupal.org/project/suggestedterms
Which suggests terms based on what they have already tagged it with.

I know that these conflict with some of your requiprements
(hierarchical tagging, for example) but they are related and useful
taxonomy tools.  If you (or someone else) wants to write some code to
achieve this then these should help provide ideas and examples that
you could base the work on.

Regards,
Greg