Hi there,

I never had response of my posts on this forum but I dont lose hope... ^^ I have a problem with view :

That's my taxonomy :

Articles
  - Actualité
  - Produits

Gammes
  - Gamme 1
  - Gamme 2
  - Gamme 3
  - etc...

With view, I would like to list all the terms of my "gamme" vocabulary (so gamme1, gamme2, gamme3, etc...)

So, I create a new page view, and list view type, and below, the configuration of my view :

Fields :

Taxonomy : Terms for Gammes

Arguments :

Nothing

filters

Taxonomy : vocabulary name -> is all of -> Gammes

I validate, and my view show.... nothing.... I'm pretty new to drupal so, maybe I make a mistake so I would like help please.

Thanks,

I hope for answer.... I hope..... ^^

Comments

nancydru’s picture

Put this in a PHP page:

<p>This is a sample of how to create a list of all terms that are being used from a particular vocabulary (category).
<?php
  $vid = 1;         /* <---- put correct vocabulary ID here */
  $terms = taxonomy_get_tree($vid);
  print "<ul>";
  foreach ( $terms as $term ) {
      $count = db_result(db_query("SELECT COUNT(nid) FROM {term_node} WHERE tid = %d ", $term->tid));
      if ($count) {   /* don't show terms with 0 count */
         print "<li>".l($term->name,'taxonomy/term/'.$term->tid)." (".$count.")</li>";
       }
   } /* end foreach */
  print "</ul>";
?>

Much less overhead.

Nancy W.
Drupal Cookbook (for New Drupallers)
Adding Hidden Design or How To notes in your database

tsavino’s picture

***Never mind found some code on your site that work well****

This make a nice ul list how would you do a table view with the odd/even and description of the term any help would be great...

The Only Limitation Is The Imagination
http://www.savinosolutions.com

nancydru’s picture

whereisian’s picture

If I understand correctly, you want to set your view argument to use the wildcard of 'all' or '*'

Check out: http://drupal.org/node/54455

wpccolorblind’s picture

thank you very much!