Closed (fixed)
Project:
Context omega
Version:
7.x-1.x-dev
Component:
Code
Priority:
Critical
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
22 May 2013 at 21:48 UTC
Updated:
26 Sep 2013 at 19:21 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
attiks commentedYou're totally right, any chance you can upload a patch? :-)
Comment #2
fubhy commentedsure, was about to do that :p
Comment #3
fubhy commentedForgive my impudence... I touched a bit more than I initially wanted. Anyways, tried to build this around the existing reaction plugin for block placement. So it shares the same UI now too and the same entry points. While doing that, I noticed that block handling in context module is still crap and does not use hook_block_list_alter() but hook_page_build() instead. Due to that, some conditions like "sidewide" context which ironically are checked in hook_page_build() too are fired AFTER hook_omega_layout_alter() (which is fired in omega_block_list_alter()) can never trigger the layout change. Hmmmmmmmmm.... :/
Well, but the .js works :P
Comment #4
attiks commentedNice work, I only add one line to change the title of the reaction so people can easily find it.
Comment #5
attiks commentedfollow up created for sitewide context: #2001898: Sitewide context isn't working
Comment #6
fubhy commentedLooks like you didnt commit the whole thing. The JavaScript is missing and maybe more! Cant check properly currently. Am in my tablet.
Comment #7
fubhy commentedComment #8
attiks commentedjs added, rest should be there
Comment #10
drupalway commentedThere are only default regions loaded by parent options_form() function:
So if layout has additional regions, they are not shown in the list.
Could you please review the patch
Comment #11
drupalway commentedForgot to load blocks into additional regions
Comment #12
drupalway commentedDue to answer in this issue #2039593: Adding an extra region all regions that we are going to use in layouts have to be added to a theme info file. So please ignore my patch.
Comment #14
alex.skrypnykAlthough #12 is a valid point, patch in #11 works perfectly when using multiple themes (including separate admin theme) as, as context knows only about regions from currently active theme (see epic https://drupal.org/node/316555).
This also works with context_omega module.