Hi,

I spent couple of hours looking in search for this issue, but in vain. I know it's there but...

I need to make a PHP block with terms (or subterms) from some vocabluary. Like this:

Brands
--Sony
--Toshiba
-- ....

Can somebody post a code for that?

Comments

ghankstef’s picture

Taxonomy Block

This is a simple module to create blocks based on taxonomy.
It displays listings of recently posted nodes based on taxonomy definitions.
You can create as many blocks as you like.

http://drupal.org/node/15192

soupp’s picture

Thanks. But. There is no need to show node listing. Just terms or subterms.

dublin drupaller’s picture

you can put this in a page or in a block..might help

http://drupal.org/node/23415

..works with standard php blocks or pages..no extra modules needed
Dub

Currently in Switzerland working as an Application Developer with UBS Investment Bank...using Drupal 7 and lots of swiss chocolate

nedjo’s picture

...which offers something like that functionality.

kbahey’s picture

Site Menu can display vocabularies in a block.

--
Consulting: 2bits.com
Personal: Baheyeldin.com

--
Drupal performance tuning and optimization, hosting, development, and consulting: 2bits.com, Inc. and Twitter at: @2bits
Personal blog: Ba

jasonwhat’s picture

http://drupal.org/node/23415 this code is close, but what the author is after, and I am also is the way to pic one vocabulary and list its terms and subterms in a block. Anybody know how for that one?

soupp’s picture

The question it's about list only. And limited to one term with subterms or to one vocabluary.

The idea is here:
http://www.budapestindex.com/shopping - top right block shows main trems, then if you click say shops...
http://www.budapestindex.com/shopping/shops - there will be another block with more terms and so on.

I had this snippet already found on drupal.org... but guess what... lost it with upgrade of my dev db server. And I can't find it amymore.