Closed (fixed)
Project:
Taxonomy Theme
Version:
4.7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
24 Jun 2006 at 18:50 UTC
Updated:
25 Jun 2006 at 23:42 UTC
I'm using the views module to generate a custom taxonomy list filtered by date. This works great, except for the fact that the path has changed (it is now taxonomy_by_date/1/20060618 rather than taxonomy/term/1), so the custom theme for that term no longer fires.
Any ideas how I can either "fake" the path, or else call execute taxonomy_theme's behaviour from another custom module?
Comments
Comment #1
profix898 commentedNot sure I understand 100% what you are doing :/ Your path looks like 'taxonomy_by_date/term/date" and what is the path (or the structure of the path) you want to apply a theme to? I guess you need to have themeA for taxonomy_by_date/termA/date and themeB for taxonomy_by_date/termB/date, right? So you could simply type 'taxonomy_by_date/termA/*' at themeA and 'taxonomy_by_date/termB/*' at themeB (in 'extended' section on the settings page)!? But maybe I am totally wrong. So please give me some more details ...
(I will split taxonomy_theme into smaller pieces shortly and I was thinking to introduce some basic api for other modules to play with themes on pathes.) But for the moment you need to work directly on the table 'theme_pathes'. It contains path/theme pairs. So you can simply manipulate (add/remove/alter) the content of this table. For every path, you need to assign a theme to, add one path/theme pair to the table. taxonomy_theme will use these pairs to match/assign the themes for you.
Comment #2
webchickCool. thanks for the fast response!
Let me try digging around a bit, as it sounds like I might've missed something totally obvious. if I can't figure it out, I'll post back with more info.
Comment #3
webchickHaha, yep I was being a bone-head. :) Adding the path under "extended" did the trick. Thanks for your help!