Closed (fixed)
Project:
Node Auto Term [NAT]
Version:
6.x-1.1-beta3
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
20 Feb 2010 at 15:37 UTC
Updated:
6 Mar 2010 at 21:40 UTC
Hello,
The content type "A" works with the module Node Auto Term [NAT].
Now I add a content type "B" using the taxonomy created by Node Auto Term [NAT] ("A").
When I view my node ("B") as a result I found:
$node->taxonomy[109]:
stdClass Object
(
[tid] => 109
[vid] => 13
[name] => Aprilia
[description] => ....
[weight] => 0
)
I know the nid node How?
Thank you in advance!
Comments
Comment #1
anantagati commentedTry to use function nat_get_nids().
You can see the function here (lines 409-487): http://drupalcode.org/viewvc/drupal/contributions/modules/nat/nat.module...
Comment #2
Clément commentedThank you for your reply
I try like this but it does not work:
Comment #3
anantagati commentedResult suppose to be array, so normal print will probably not show you what you want to see. You can use dpm() if you have Devel module enabled or print_r().
If you have Devel module enabled:
Otherwise:
Comment #4
anantagati commentedComment #5
Clément commentedYes that's exactly it, the problem is that the table is empty.
I take the problem to the database:
I created content "A" (nid = 93) with the title node: Aprilia
When I go in the taxonomy (Brand) I found:
Now I create a content type "B", and I use the taxonomy "Brand" -> Aprilia
I therefore find as a result the picture I put above.
So normally if the function nat_get_nids () function that should give me a table with as nid = 93.
I do a test with views and get well 93, so it is with the function that I have a problem.
Thank you for your help!
Comment #6
Clément commentedI solved the problem!! The solution:
And not:
I'm super happy!
Greetings.
Clement