Category_display features
Category_display is a module that is included as part of the categoryi package. It allows additional output to be displayed and toggled for categories, containeris, and assigned nodeis. Features include:
- Configurable navigation links
- For each container, you can choose whether or not navigation links ('prev', 'next', and 'up') are displayed for the container and its categories. Additionally, you can also choose whether the links connect to other containers, or whether they are only internal for that container.
- Table of contents display
- A table of contents can be displayed for a container and its categories, and the depth of the TOC can be configured for each container. Additionally, you can choose to display an assigned node count for each category listed in the TOC.
- Node listings can be customized
- For each container, you can choose whether or not assigned nodes display links to that container's categories; and you can toggle the 'no posts in this category' message.
- Elegant hidden containeri handling
- All TOC's and navigation links effectively 'skip over' hidden containers, allowing them to exist on your site without being at all visible in the category structure, and without messing up your hierarchyi levels.
- Fully themable output
- All output generated by category_display is contained within themable functions, which can easily be overridden by your site's theme. So if you don't like the way category_display formats your categories, you can change it yourself without hacking any module code.
further notes
Actually, upon further consideration, I would just like to be able to selectively display a list of teasers for the child categories of the current categoryi.
Ideally this would avoid the default TOC behaviour entirely (I take care of that using menus). So, simply put, I would like to display a list of child categories as teasers. I assumed that this would be possible using a view, but I've been unable to get it to happen.
Thanks!
Colin
Views would be way to go-
Views would be way to go- you simply need to override the ToC with the view using the setting in the containeri node form. But, you are right that this will not give teasers for all the sub-cats.
Another way might be to turn off ToC altogether, and add php code in the container's body area (input format for container needs to be PHP) that pulls in the teasers of the sub-cats.
I have no idea about the code, though.
TOC in categories
How can I add table of contents to categoryi? With Container everything is great - it's a container. But what about category?
I'm not going to use "views.module" because of its load on server.
Best practices to extend category module: task at hand- images
Hello, I love the categoryi module and would like to extend it for the site I'm doing by making it possible to add thumbnail images next to the category names.
I'm a bit disturbed by the lack of discussion in the Drupal community on how to extend a module-- it's great that Drupal itself is modular, but if I want to add a little something to a module it seems I ought to be able to
So what is the best way to add this relatively straightforward addition to the Category Module: a field where users can enter a path to an image associated with that category-- without creating a fork of the module?
image_attach
Personally, I would instead use the image_attach module (that comes with the image.module). Since categories are just nodes, you could thus attach an image node automatically, and theme it if you need.
- Aaron Winborn
Advomatic, Web Design for Progressive Advocacy, Grassroots Movements, and Really Cool Causes
Display TOC as teasers
I would like to be able to represent the TOC for a categoryi as teasers.
That is, instead of displaying links to each subcategory, I would like to display a typical teaser with a title and body.
I think this is possible by hacking category_display_toc() but I'm wondering if there is a more elegant way of doing this. I know that category_display can already render a list of teasers for assigned nodeis, but I'd like to use the same format for actual categories, and I've been unable to figure out a way to do this.
Thanks,
Colin
--
http://www.visiontechnologies.ca/