I want to create a category list block just as this picture http://www.jpj.net/~sarahr/screen.jpg .
Would you like to tell me how to do?
Thanks in advance

Comments

dldege’s picture

jetbrains’s picture

Thanks a lot
But it doesn't support Drupal 5.1. sigh :(

java development

As If’s picture

Here's one way to do it, if you think in PHP...

Step 1. Look at taxonomy.module and decide if you can use those functions, or if you need to write your own (which all depends on how deep your taxonomy is and how it's structured, so I won't second-guess you here, but look at

  • taxonomy_get_vocabularies()
  • taxonomy_get_children()
  • taxonomy_term_count_nodes()
  • Everything you need to return a category list block is already there, so you'll probably end up writing your own function that uses some existing functions. You can just add your new function to the bottom of the module, but make sure you give it a unique name that won't confuse Drupal.

    Step 2. Create a block to hold your category list. Make its input type "PHP code" and then call your new function right there.

    -------------------------------------------
    Interactive Worlds and Immersive Obsessions
    http://www.asifproductions.com

    -------------------------------------------
    Interactive Worlds and Immersive Obsessions
    http://www.asifproductions.com