By soupp on
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
There is a module for this
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
But...
Thanks. But. There is no need to show node listing. Just terms or subterms.
does this help?
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
You could look in taxonomy_context.module's block hook
...which offers something like that functionality.
Site Menu?
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
Almost there
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?
Right
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.