Can I define a context for a theme and then define another context for a different theme?

So if I have context "foobar" in Garland can I also define "foobar" in Bluemarine or Zen?

If so, how?

Comments

socialnicheguru’s picture

This would be similar to how blocks work.

yhahn’s picture

Status: Active » Closed (won't fix)

You could perhaps write a custom very late-page condition that checks the current theme. Not something we'll be implementing in context proper.

bhairav’s picture

If you are a novice user (new to drupal) you can learn all about it...

Just visit http://everythingaboutdrupal.blogspot.com/ and you can get other HELP links also there.

Thanks

socialnicheguru’s picture

@yhahn, can you point me to the place where I could take a look at where to write a late page condition?

yhahn’s picture

Yes, take a look at the sitewide condition. It's integration point is at hook_context_page_reaction() in context.core.inc.

socialnicheguru’s picture

And if I check the theme, can I then load a specific context for that theme? So if I have a calendar feature. I can activate context1 for Garland and context2 for Zen?

I just want to make sure that I am on the right track.

thanks again.

iNade’s picture

Subscribe - need to disable context for a particular theme, for example disable blocks in Garland and show them only in Zen.

cyberwolf’s picture

I needed something similar and found http://drupal.org/project/context_condition_theme. Might be worth having a look at that project.