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

joachim’s picture

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

brynbellomy’s picture

Status: Active » Closed (works as designed)

This 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!

joachim’s picture

Component: Code » Documentation
Status: Closed (works as designed) » Active

> 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!

brynbellomy’s picture

Patches welcome! ;)