4.6 version of og_block_visibility?
| Project: | OG Block Visibility |
| Version: | HEAD |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | won't fix |
Jump to:
I'm just drooling over the og_block_visibility module recently put into cvs by webchick.
http://cvs.drupal.org/viewcvs/drupal/contributions/modules/og/contrib/og...
I have a project where I would like to have unique navigation menus for each of my groups. To do so I would need to create a menu, enable the block and set the block visibility setting for the group. When I try this using the og_block_visibility.module in 4.6, the visibility settings do not appear in block configuration. I'm guessing it is calling for functions not present in 4.6. Can This module be backported so it works with 4.6? I can put some funds toward this. This would also be of great interest to CivicSpace users who currently have no way of controlling block visibility by role. Controlling by group would be even better.
OG is brilliant, by the way. IT makes so much sense on so many levels for what so many people are trying to accomplish with CivicSpace/Drupal. I'm not just saying that so you'll help me. Truly outstanding work.

#1
Hi there, lectric! Thanks for the interest in that module! I assume you're the same person who e-mailed me about it. :)
Unfortunately, the logic used in og_block_visibility is extremely 4.7-specific. It not only uses the form API stuff to add options to the block configure page, but also makes use of the PHP visibility settings for blocks which only 4.7 supplies. Therefore, I don't think it is possible to back-port it; it would require a complete re-thinking from the ground up to work in 4.6, and I can't envision any way to do it in a clean way without some of the advanced stuff that 4.7 offers. :(
I will leave active rather than won't fix it in case someone else happens across this and comes up with a brilliant idea, however.
#2
#3
Changing title so I don't keep looking at this and wondering what its about. ;)
#4
I'm going to set status on this to "won't fix" ... again, if someone can come up with a neat idea, I'll look at re-opening it again.
#5
I'm no longer drooling, so it won't be me. I think the issue of setting block visibilty beyond paths in 4.6 has beaten most people, though there is a very cool patch for block visibility by role at http://drupal.org/node/49154 and it works great! This may be the closest people will get in 4.6.x