Hi, I've got an issue that I just can't get resolved. I've created two vocabularies,
age and subject, these two vocabularies have each three distinct subcategories
youth, adult, elderly and home, work, free-time.
I've enabled taxonomy themes on 'all taxonomy' since that gives best results so far, the problem I encouter is that when I combine both vocabularies, drupal backs out and uses the default theme. Let's give an example to clear this out
/drupal/taxonomy/term/11 (this is with the age vocab applied) selects it's assigned theme from taxonomy theme
/drupal/taxonomy/term/10 (this is one from the subject) this one also selects the correct theme dictated by taxonomy theme
but
drupal/taxonomy/term/11,10 where both age and subject are filtered does not select any theme based on taxonomy theme, I was expecting it would select the theme assigned to the age vocab since it's the first term in the query. But to my misfortune, taxonomy theme selects no theme at all and cowerdly let's drupal serve the pages with the default theme applied.
Any way to get taxonomy_theme choose a theme based on one of the two terms applied?
Comments
Comment #1
xiffy commentedFirst of all, sorry for the 'bold' message above. I did not use preview and apparently I'm not allowed to edit my own posts. My err, but don't be harsh, I'm a very drupal-newbie.
Second, I've found a work around for the aforementioned problem where taxonomy_theme could not choose a theme.
I've opened taxonomy_theme_taxonomy.inc in my editor and scrolled down to line 160 where I've found my culprit.
Given the URI /drupal/taxonomy/term/11,8
if (is_numeric(arg(2)))will be false when combined taxonomy is used. I've added an additional else where I test if the first part of arg(2) is numeric; hence the theme for term 11 will be used in the given example. If I decide the second argument should also determine the theme, I just swap the terms in the URI /drupal/taxonomy/term/8,11 a different theme will be used, the same stories get selected.Maybe this enhancement can be part of the official release?
Comment #2
mkalkbrennerTaxonomy Theme 5.x is unmaintained. As you can see at the project description page we're looking for a co-maintainer espacially for th 5.x version.
Comment #3
mkalkbrennerTaxonomy Theme 5.x is unmaintained. Due to the fact that Drupal 5 itself is not maintained anymore, we close this issue to get the issue queue clean for Taxonomy Theme 6.x and 7.x.