Closed (fixed)
Project:
Node Auto Term [NAT]
Version:
5.x-1.1-beta
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
17 May 2007 at 23:33 UTC
Updated:
24 May 2009 at 02:07 UTC
Jump to comment: Most recent file
Comments
Comment #1
gryste commentedI've tested this and it works perfectly. Thanks, this is an excellent addition!
Comment #2
Zen commentedCould you guys convert this into a patch against the -dev version? It would also be useful if this was a configurable option.
Thanks!
-K
Comment #3
gryste commentedHere's a patch against 1.14.2.7. Tested it on a 5.1 install.
The link change is optional and can be configured for each node type separately.
Note: nat_get_nids has changed in the latest version of nat.module so jpsalter's code above won't work. The line that calls nat_get_nids needs to change:
Comment #4
gryste commentedNew patch (with -u) for the same code change.
Comment #5
Zen commentedNice patch. Committed to D5 and HEAD along with the following changes:
Thanks gryste.
-K
Comment #6
yched commentedNice feature, but wouldn't it be best to handle this through $vocabulary->module and hook_term_path ?
Comment #7
Zen commentedBut that would restrict the feature to non-taxonomy module vocabularies only, not to mention that they would have to always belong only to the NAT module. Currently, there are no such restrictions.
Thanks.
-K
Comment #8
JacobSingh commentedThis is not working for me, and I'm not sure why it is built the way it is. In my case, I am doing a site about animals, so I have a cck type called "species" which has nat applied to it. So that when someone makes a blog post about a species, they can tag it. And I want the link that gets displayed with the blog post to reference the species page (node) not the taxonomy.
This code checks for nat_config on $node->type so there is no nat_config for the node->type blog, so nothing happens. It seems that something else is needed here. I'll try to change it, but I wanted to make sure I wasn't missing something.
Comment #9
JacobSingh commentedSorry, I missed the additions to the config screen. I get it now :) *grins sheepishly*
Thanks,
J
Comment #10
smitty commentedI tested these changes with the Head Version (Date: 2007-Jun-19) on a 5.1 installation. Here is what I found:
1. When I click on "Preview" after creating an new node I get:
2. When I click on "Submit", there is no error or warning. In the vocabulary is created a new term. But there is no node-term-association created, although I checked the checkbox "Associate node body with term description" in the Nat-Configuration.
3. Deleting the node does not delete the term in the vocabulary, although the checkbox "Delete associated term if a node is deleted." is checked.
Any ideas?
Comment #11
Zen commentedI fixed the preview bug today. Please test and let me know.
I cannot reproduce the deletion issue you have mentioned. Please retest and open a separate issue for that. Thanks.
Comment #12
smitty commentedThanks to Zen for the bug fixing. The message associated with the preview is gone now.
Concerning the two other points of my former posting I found now, that the node-term-association is really created and also deleted properly.
But the relation is stored in the nat-table (what I did not see writing my former posting) and not in the term_note-table (as I assumed).
So my problem is, that this relation / the term does not show up anywhere (because the standard taxonomy mechanism look to the term_note-table?). Even if I go to the list of taxonomy-terms and click on the created term I get "There are currently no posts in this category.". So for the user of the site it seems that the relation is not stored.
Am I doing something wrong? Or other way around: Why don't you store the relation in the term_note-table?
Comment #13
(not verified) commentedComment #14
jhofer commentedIs there a similar fix for the 6.x-1.1-beta? or will the 5.x fix above work just the same?