By cantastorie on
I would like to list categories used in my website taxonomy without having displayed the number of posts in them.
The actual display is :
- term 1 (n)
- term 2 (n)
I'd like to display:
- term 1
- term 2
I would like to list categories used in my website taxonomy without having displayed the number of posts in them.
The actual display is :
- term 1 (n)
- term 2 (n)
I'd like to display:
- term 1
- term 2
Comments
Sorry to be insistent. Could
Sorry to be insistent. Could anyone help me?
Do you refer to the list of categories in block?
I think you can modify in taxonomy.module line 109 (drupal 4.5.2):
$items[] = l($category->name .' ('. $category->count .')', 'taxonomy/term/'. $category->tid) .'
'. t('%time ago', array('%time' => format_interval(time() - $category->updated)));
to
$items[] = l($category->name , 'taxonomy/term/'. $category->tid) .'
'. t('%time ago', array('%time' => format_interval(time() - $category->updated)));
but maybe there are simpler solutions.
Cheers, Mike
This can probably be
This can probably be modified within the theme itself rather than modifying the taxonomy module.
-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
What template are you using?
Are you using phptemplate? Also, can you give a direct example of the problem? (a link perhaps)
Mateo
Yes, I'm using
Yes, I'm using phptemplate.
These are some examples:
http://www.semioticamente.it/versus/?q=article/numeri+della+rivista
http://www.semioticamente.it/versus/?q=article/autore
However I'm really grateful for your aid.
I'll try the patch as soon as the 4.6 will be released and I'll set up a test site.
Riccardo
Try this
Try putting the following function in your template.php file (located in your template directory). It will override the default function.
It will override the theme_article_index_item function. Let me know if it works.
If you need help inserting the function into the template.php file, search drupal for "template.php"
Mateo
It has worked. I'll post
It has worked. I'll post eventual side effects.
Many thanks to all.
Depends on what you want
Do you want a page or block with all the taxonomy terms listed?
You can look at the sitemenu module in the download page and maybe it is what you want.
--
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
Personally, I want a block...
.... so that it looks just like the list of "categories" at http://www.frazierhome.net
Edit: got it. It appears that Taxonomy DHTML does exactly what I want. All fixed. :)