Please make the tagging feature available

ddyrr - July 7, 2008 - 22:18
Project:Zemanta
Version:6.x-1.0-beta1
Component:Code
Category:feature request
Priority:normal
Assigned:JureCuhalev
Status:active
Description

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.

#1

JureCuhalev - July 8, 2008 - 11:11
Assigned to:Anonymous» JureCuhalev

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

#2

ddyrr - December 2, 2008 - 01:19

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:

<?php
    $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

<?php
     $tag_id
= "edit-taxonomy-tags-".variable_get('zemanta_taxonomy',0);
?>

#3

JureCuhalev - December 4, 2008 - 10:53

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

 
 

Drupal is a registered trademark of Dries Buytaert.