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

profix898’s picture

Any ideas how I can either "fake" the path ...

Not 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 ...

... call execute taxonomy_theme's behaviour from another custom module

(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.

webchick’s picture

Cool. 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.

webchick’s picture

Status: Active » Closed (fixed)

Haha, yep I was being a bone-head. :) Adding the path under "extended" did the trick. Thanks for your help!