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?
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
Comment #1
socialnicheguru commentedThis would be similar to how blocks work.
Comment #2
yhahn commentedYou could perhaps write a custom very late-page condition that checks the current theme. Not something we'll be implementing in context proper.
Comment #3
bhairav commentedIf 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
Comment #4
socialnicheguru commented@yhahn, can you point me to the place where I could take a look at where to write a late page condition?
Comment #5
yhahn commentedYes, take a look at the sitewide condition. It's integration point is at hook_context_page_reaction() in context.core.inc.
Comment #6
socialnicheguru commentedAnd 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.
Comment #7
iNade commentedSubscribe - need to disable context for a particular theme, for example disable blocks in Garland and show them only in Zen.
Comment #8
cyberwolf commentedI needed something similar and found http://drupal.org/project/context_condition_theme. Might be worth having a look at that project.