Needs review
Project:
Context
Version:
7.x-3.x-dev
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
11 Dec 2011 at 00:41 UTC
Updated:
15 Oct 2013 at 19:47 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
tekante commentedAttached is a patch that will cause context to conditionally activate the block plugin based on whether the block module is enabled. I took a look at the mongodb_block module and was wondering if there exists an abstraction layer such that context's block plugin could use whatever block provider was being used for a site. It did not seem like this was going to be feasible and thus a mongodb block reaction plugin for context would likely be necessary but I thought I'd check. Let me know how the patch works for you.
Comment #2
js commentedI am checking in on this issue because I am at a point of deciding on mongodb_block. I have been using Context, which is great, but the site needs to be faster.
I don't yet know how much it would benefit from mongodb_block, but it would be nice to have both.
Comment #3
mgiffordAny progress on this? I'm just looking at issues about MongoDB now.
Comment #4
tekante commentedCurrent status on this issue is: Patch from comment 1 should remove the block dependency but it also removes the context block reaction.
In order to have a block reaction while using mongodb_block a mongodb_block specific block reaction plugin will need to be written. Any information about whether an abstraction layer for blocks exists such that the normal context block reaction could work for any block providing backend would be welcome.
Comment #5
Charlouze commentedHere is a patch that allows not to disable the block reaction features.
To use another block backend, this backend has to define two functions that must act like the one defined by the block module:
- module_block_get_renderable_array that must act like _block_get_renderable_array
- module_block_render_blocks that must act like _block_render_blocks
Also, you have to add the code below in settings.php
If you think this is a good fix for this issue. The block backend configuration can be added to the administration of context.
EDIT: In order for this patch to work with mongodb_block module, you have to patch mongodb_block module with the one I sent in this issue
Comment #6
jyee commentedreroll of #5 for the latest dev (revision: 16aa5ae).
edit: this should apply cleanly, however context+mongodb_block does not appear to work, so this may need a more thorough rewrite.
Comment #7
Charlouze commentedIf you want this to work with mongodb_block you have to patch mongodb_block ... see this issue