Hi,
I wrote a script to import an old database into a drupal install. Everything works fine exept saving those fields defined as "Content Taxonomy Fields" with "Autocomplete (freetagging)".
If I try to set up this fields as standard CCK type and save them through node_save api function this not works. I tried several array configuration but none of them works.
For example, a standard cck field is get saved correctly with
(....)
$nodetmp->field_data_nascita = array(array('value' => $corridore->field_data_nascita));
(....)
node_save($nodetmp);
Any idea about saving a field of this type with the node_save function?
Thanks a lot.
Comments
Comment #1
fitzkarraldo commentedComment #2
trevorbradley commentedI know this is an old post, but you need to save the taxonomy tid instead of the text field.
I had to write a function to pull data from the taxonomy tables, and I just managed to get this to work. Perhaps this could help someone else later on:
Hope this helps someone out!
Comment #3
magnus commented