Hi all,
I am a new user of Drupal and set it up on our church site: www.lambertikerk.nl (Zelhem, The Netherlands). I really like it, but I've got one question so far:
- Is it possible to view child categories on the page of a category?
E.g. when I have a taxonomy like:
Foo (4) ----foobar (2) ----fooquux (2)
and there are no postings in Foo itself, but in foobar and fooquux, the page "Foo" just says "There are no items in this category.".
I like it to say "There are on items in this category but we have 2 subcategories: foobar and fooquux," and display a short summary of both.
Also when there are postings inside "Foo", it would be nice if there was a way to have some block saying "See also" and show the child categories.
thanks, Wilbert
There are several taxonomy modules in contrib which can display navigation blocks with categories. Check the module list on drupal.org for modules who have "taxonomy" is their name.
As far as you other question, this is easy: the taxonomy URLs support a depth parameter, which specifies how many levels of child categories to include. You can specify a number, or "all" to include all children.
e.g. change: taxonomy/term/1234 -> taxonomy/term/1234/all
However, Drupal will not use these URLs by default. You can use them in custom links and path aliases though.
Steven Wittens
I have the same problem as the original poster. I thought it was an error in my setup, but you make it sound like it is deliberate. I'm using the menu module, which automatically points to the top of my taxonomy (the name "Topics"). That goes to site/taxonomy_menu/2. This gives me a blank page that says "There are currently no posts in this category." If I go to site/taxonomy/2, it has no content at all.
Seems like when you go to the top level, it should have links to your categories, with the category descriptions, in the manner of the images module top level page.
I guess the alternative is to hand write a page that has small descriptions and links to the different taxonomy pages. Not hard, but that is the kind of thing that I would have expected Drupal to take care of.
Best regards, Steve (stevew on the drupal.org forums)
There are several taxonomy modules in contrib which can display navigation blocks with categories. Check the module list on drupal.org for modules who have "taxonomy" is their name.
As far as you other question, this is easy: the taxonomy URLs support a depth parameter, which specifies how many levels of child categories to include. You can specify a number, or "all" to include all children.
e.g. change: taxonomy/term/1234 -> taxonomy/term/1234/all
However, Drupal will not use these URLs by default. You can use them in custom links and path aliases though.
Steven Wittens
-- [ Drupal support list | http://lists.drupal.org/ ]
stevew@etmeli.us wrote:
I have the same problem as the original poster. I thought it was an error in my setup, but you make it sound like it is deliberate. I'm using the menu module, which automatically points to the top of my taxonomy (the name "Topics"). That goes to site/taxonomy_menu/2. This gives me a blank page that says "There are currently no posts in this category." If I go to site/taxonomy/2, it has no content at all.
Sounds like taxonomy_menu could simply use a switch to use full-depth taxonomy URLs (i.e; with /all). You could suggest it to the person who wrote the module.
Steven Wittens
Am 21.01.2005 um 21:47 schrieb stevew@etmeli.us:
I have the same problem as the original poster. I thought it was an error in my setup, but you make it sound like it is deliberate. I'm using the menu module, which automatically points to the top of my taxonomy (the
...
As far as you other question, this is easy: the taxonomy URLs support a depth parameter, which specifies how many levels of child categories to include. You can specify a number, or "all" to include all children.
e.g. change: taxonomy/term/1234 -> taxonomy/term/1234/all
However, Drupal will not use these URLs by default. You can use them in custom links and path aliases though.
My site is running Drupal now for two weeks, and I had the same question. I just found the "depth"-parameter in the doku, and realized it is not used by default. I also would like a switch to enable this in the side-block "Kategories".
I guess the alternative is to hand write a page that has small
Not necessarily; in the meantime, I added an alias (or two) with the "/all" in the path, and inserted this link in the primary menue (configured via themes-admin).
Servus Franz
I had a similar need recently and so I patched taxonomy_menu to list subcategories in addition to the matching nodes.
I'll try to find some time this weekend to work up a patch and put it up on the project page.
In the meantime, if you need something quickly, contact me off-list and I will send you the version I'm using now, which is only known to work against CVS from a week ago or so and has a couple of other changes in it.
-Eric
Wilbert Berendsen wrote:
Hi all,
I am a new user of Drupal and set it up on our church site: www.lambertikerk.nl (Zelhem, The Netherlands). I really like it, but I've got one question so far:
- Is it possible to view child categories on the page of a category?
E.g. when I have a taxonomy like:
Foo (4) ----foobar (2) ----fooquux (2)
and there are no postings in Foo itself, but in foobar and fooquux, the page "Foo" just says "There are no items in this category.".
I like it to say "There are on items in this category but we have 2 subcategories: foobar and fooquux," and display a short summary of both.
Also when there are postings inside "Foo", it would be nice if there was a way to have some block saying "See also" and show the child categories.
thanks, Wilbert
Hi all,
thanks for all your consise replies; taxonomy_context was the one I was looking for. It displays sub-terms as a sort of subdirectories, which is very nice.
thanks again, Wilbert