I have set up 3 different namespaces which should navigate down the tree to show the different blocks in each namespace.
This is the layout in Context UI (SCREEN 1)
ride_24 has one block on it (whos online)
event has one block on it (menu block)
The main section doesn't have any blocks that apply.
So with the ordering I would expect the event block to show first then the ride_24 block. But it doesn't it shows the ride_24 block first.
(SCREEN 2)
But when putting the menu block on the ride_24 block so it is on both the ride_24 and event context's. Although the block appears twice, they appear in the right order.
(SCREEN 3)
| Comment | File | Size | Author |
|---|---|---|---|
| SCREEN 3 | 60.95 KB | jamestombs | |
| SCREEN 2 | 52.81 KB | jamestombs | |
| SCREEN 1 | 42.71 KB | jamestombs |
Comments
Comment #1
jamestombs commentedJust gone back to the dev site and seems to be working as expected. Nothing was changed. I guess it may of been a cached data issue as I don't think I cleared the cache.
Comment #2
jamestombs commentedSpoke to soon, added another block from a third module and the blocks are shifted in to a random order again.
Comment #3
steven jones commentedThe weights of blocks are per context, and I'm not entirely sure what happens when you have multiple contexts firing together.
Either all of the blocks from one context should get rendered first, or the blocks should get rendered in weight order.
You might want to try exporting your contexts into code, as you then get easy access to the weight setting and should be able to control the order of your blocks.
Comment #4
jamestombs commentedThe export obviously doesn't take in to account the hierachy of contexts applied to a page. I can't think of a way around it other than to disable multiple contexts being applied to a page and have the ability to easily order contexts then any additional blocks that would be passed down could be set again in the last context.
Comment #5
yhahn commentedThe easiest way to order your blocks when multiple contexts are involved are to use the inline context editor (requires Admin & jQuery UI) to order your blocks directly on the page. Note that "tags" (no longer namespaces) have no functional effect on contexts -- they are purely for organizing the display of the admin page.
Comment #6
jamestombs commentedI don't see how to do this as I have both jQuery UI and Admin enabled but no way of ordering the blocks, I only get the configure option.
Comment #7
gmclelland commentedI had to watch the video http://vimeo.com/7643255. About 8:28 minutes into the video you can see how to rearrange the blocks with drag and drop.
Hope that helps,
-Glenn
Comment #8
jfine commentedI know this is closed as won't fix but I'd just like to add my support that there should be a native way to set default block weight in the context ui without having to add yet another module just to add one (what I would consider fundamental) piece of functionality.
Comment #9
rjacobs commentedAs far as I can tell, the issues highlighted here are the same as those raised in several other threads, and it looks like the current solution is to use the inline editor, as noted above. However, in the interest of consistency I'd like to suggest that this issue be consolidated into one thread. As far as I can tell, the best thread for that is the following:
#455908: Allow setting block weight via context admin UI
As a result, I hope it's ok to adjust the status just a bit, and mark this as a duplicate.
Comment #10
ressaI am now glad I had a block order problem, with random ordered blocks from different contexts. Dragging and dropping them, and re-ordering them live is a big improvement!
Just install the Admin and jquery module, and watch the video as mentioned in post #7, and all will be clear.