Come together with the global Drupal community in Rotterdam, 28 Sept – 1 Oct 2026. Sessions, contribution, connection, and Early Bird savings until 8 June.
Thanks this was just what I needed. I've tried 3 different modules so far trying to do this.
I wanted a block that had a list of all categories that a story can be. This code snippet gives me really close to what I need.
--------------
categories
--------------
| Example (3 articles)
| SomethingElse (1 article)
| Another category (8 articles)
| etc...
Comments
can someone please help with
can someone please help with this! How do I create categories that can be found on a block. Thanks!
huh?
You are being to vague. Think about what you are wanting to do and present it a little more.
There are several posible ways in the cutom blocks repository too.
http://drupal.org/node/21866
Maybe this as well.
http://drupal.org/project/article
-sp
---------
Test site...always start with a test site.
Drupal Best Practices Guide
-Steven Peck
---------
Test site, always start with a test site.
Drupal Best Practices Guide
not sure
Since your question wasnt really clear I will just assume..
If you want to display a list of categories in your database use the following code in the block and set the block to php
I got this code of the forum sometime back and it works fine for me.
Just what I needed!
Thanks this was just what I needed. I've tried 3 different modules so far trying to do this.
I wanted a block that had a list of all categories that a story can be. This code snippet gives me really close to what I need.
--------------
categories
--------------
| Example (3 articles)
| SomethingElse (1 article)
| Another category (8 articles)
| etc...