Active
Project:
Context Reaction: Theme
Version:
6.x-2.0-alpha1
Component:
Documentation
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
15 Sep 2010 at 15:59 UTC
Updated:
27 Oct 2010 at 01:00 UTC
I have this situation:
main site theme:
- node.tpl
- node-foo.tpl
context switched theme:
- node.tpl
- node-bar.tpl
The context is set to switch nodes of type bar to the 2nd theme.
However, node-bar.tpl is not picked up.
The workaround is to put a node-bar.tpl in the main theme folder.
Comments
Comment #1
joachim commentedCorrection -- the node-bar.tpl is the 2nd theme is never picked up.
The one in the main theme is, even though the site is shown in the 2nd theme.
Comment #2
brynbellomy commentedThis has come up in other issues in the queue... unfortunately, it's a bug in Context, not in this plugin. I hate to say it, but I think the only two Context conditions that will work with this plugin are 'sitewide' and 'path'. If you still want this functionality, I recommend using Pathauto to give each node type its own distinct path (/content/blogposts/*** or something) and then use the path condition... it's a little hackish, but it works well for a lot of people. Pray for fixes to Context 3 and Drupal 7!
Comment #3
joachim commented> it's a bug in Context, not in this plugin
Do you have a link for that?
> I hate to say it, but I think the only two Context conditions that will work with this plugin are 'sitewide' and 'path'.
This really should be added to the docs and mentioned in the UI when you pick this as a reaction!
Comment #4
brynbellomy commentedPatches welcome! ;)