Closed (fixed)
Project:
Drupal core
Version:
4.6.0
Component:
taxonomy.module
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
17 May 2005 at 00:51 UTC
Updated:
18 May 2006 at 05:45 UTC
Attached is a patch against 4.6.0 to allow themeable taxonomy term pages (e.g. http://www.your-site.com/taxonomy/term/15). This allows theme developers to override the taxonomy term node listings.
The hooks provided are:
| Comment | File | Size | Author |
|---|---|---|---|
| taxonomy-term-theme.patch | 1.79 KB | krumms |
Comments
Comment #1
drummSince nodes are already themeable this function doesn't need to be themeable.
I think your average themer using phptemplate or somesuch might be a bit scared of this since it mixes database functions and somewhat complex php logic. And there are a few other places which do node listing that could benefit from a bit of themeability (node and blog modules).
I think I would implement this as a non-themeable function which takes arguments such as:
- sql query result with a nid column.
- (potentially themeable) function to call to wrap the node listing. Would default to something simple that throws an xml icon at the bottom.
- (potentially themeable) function to call to render each individual node. Would defualt to node_view.
I think that might be enough for this round of development. I think there could be more work to do, such as making the RSS pages.
This is a good start toward something we have needed for awhile.
Comment #2
moshe weitzman commenteddrumm's suggestion looks sane to me.
Comment #3
krumms commentedClosing this at long last. I was young, dumb and naive :P