Hi,

Thanks to the author to provide this excellent and simple module to make drupal more "category" friendly and demistify taxonomy use.

The taxonomy list combined with taxonomy image do exactly what I want, it list some terms to provide a category style navigation.

However, there is a thing I don't know how to do (if it's doable), it's to theme a taxonomy list generated page.

Basically, I would add some description text on the begining and in the end of my page, or altering the way the listing is displayed etc... It is doable with an external .tpl.php file, and, if yes, how ?

thank you again

zmove

Comments

nancydru’s picture

Status: Active » Closed (works as designed)

The module implements theme_taxonomy_list_vocabulary, which means it is available to the theme layer. Creating a new PHPTemplate

Each term uses theme_taxonomy_list_term, which would also make it available to the theme layer.

BTW, the vocabulary description is displayed at the top of the list. It may contain HTML.

If there are changes that might apply to a wider audience, you may also submit a feature request.

toolin’s picture

just an FYI the link above is to drupal 5 docs. for later versions the docs you want are here ...

http://drupal.org/theme-guide/6-7

and the example template supplied with the distro is also for drupal 5. If you're theming for the first time (like me) a bit confusing. Basically you need two templates (fancier theming there are other themable bits):

taxonomy_list_vocabulary.tpl.php

- corresponds to theme_taxonomy_list_vocabulary() in taxonomy_list.module
- $variables[0] is $vocabulary

taxonomy_list_term.tpl.php

- corresponds to theme_taxonomy_list_term() in taxonomy_list.module
- $variables[0] is $term