It would be great if we could specify taxonomy fields that could be used with the tagging feature in Zemanta. Whenever those fields are available on the page, Zemanta could give the option to automatically fill them in.

Comments

JureCuhalev’s picture

Assigned: Unassigned » JureCuhalev

Make sense. We'll add this to our next release and fully explore how Taxonomy module works in Drupal.

ddyrr’s picture

I would still love to have this feature. It seems like it should be fairly easy to add, as all you are missing is the target input box for the tags. In the Zemanta settings in the admin area, you just need to have something like the following:


	$vocabularies = taxonomy_get_vocabularies();
	$first_voc = 0;
	foreach ($vocabularies as $vid => $vocabulary) {
		if ($vocabulary->tags) {
			if (!$first_voc) {
				$first_voc = $vocabulary->vid;
			}
			$options[$vocabulary->vid] = $vocabulary->name;
		}
	}
  $form['zemanta_taxonomy'] = array(
    '#type' => 'select',
    '#title' => t('Enable Zemanta tags for following vocabulary'),
    '#default_value' => variable_get('zemanta_taxonomy',$first_voc),
    '#options' => $options,
    '#description' => t('Select vocabulary for which you want to enable Zemanta tags.'),
  );

The id of the input field that holds the tags is:
edit-taxonomy-tags-[ID] or

     $tag_id = "edit-taxonomy-tags-".variable_get('zemanta_taxonomy',0);
JureCuhalev’s picture

Thanks, I've re-raised this issue internally will see if we can get it in.