hi all

i want to add a cck field to the vocabulary as term

i use this code http://drupal.org/node/297030 but code is not working

how can i do this?

Best Regards

Comments

WorldFallz’s picture

That snippet is tagged for d5-- maybe check the functions it uses at api.drupal.org and see what's changed for d6.

benjamin.pauley’s picture

If I'm understanding correctly, you want to be able to have the value of a CCK field inserted into a site-wide taxonomy. Is that right?

If that's what you want to do, I believe that the Content Taxonomy module will do the trick.

There's also a discussion hereof various CCK/Taxonomy modules, though there seem to be only two possibilities for Drupal 6/

WorldFallz’s picture

not quite-- content_taxonomy creates cck fields for taxonomy vocabularies, but doesn't add items from a cck field to a taxonomy vocabulary.

benjamin.pauley’s picture

Sorry--I was mis-remembering something I'd done on my site. WorldFallz is quite right, of course.

I guess what I was thinking of was Content Taxonomy's setting to allow new terms to be inserted into a vocabulary using an autocomplete-type field. But no, I don't suppose that's quite what the original question was driving at. My apologies.

HolyBoY’s picture

thanks for all replies

Content Taxonomy's allow new terms to be inserted into a vocabulary
but when i use Content Taxonomy I can not fill Content Taxanomy Field in Computed Field

for example

in computed field i can use this code for fill a non computed field
$node->field_noncomputedfield[0]['value'] = $myterms;

but i want to fill Content Taxonmy field via computed field

how can i do this?

Best Regards

HolyBoY’s picture

up up

i can't this please help me!