taxonomy

no drupal taxonomy support for drag-and-drop admin of free tagging vocabularies

I have a free-tagging vocabulary but can only get table drag hierarchy ability on admin/content/taxonomy/ [[vocab-id]] when the checkbox for "tags" is checked in the settings fieldset of admin/content/taxonomy/edit/vocabulary/ [[vocab-id]]

I posted this question to drupal.org here but no responses.

Drupal taxonomy snippet - get all terms for a vocabulary

I was unable to find this anywhere online, but it's a pretty basic one - get all terms for a vocabulary and create a list with their names...

<?php
/*
* Get all terms for a vocabulary
*
* @author Benjamin Lowenstein, Colingo Labs LLC
*/

// set vocabulary id #
$vid = 1;

$sql = "SELECT * FROM {term_data} WHERE vid = %d";
$result = db_query(db_rewrite_sql($sql), $vid);

$terms = array();

while (
$data = db_fetch_object($result)){
 
$term = $data->name;
 
$terms[] = $term;
}
echo
theme_item_list($terms);
?>

Syndicate content