When disabling the core block system I cannot get to the block configuration pages.
For example: admin/build/block/configure/block/[block-id]
It would be good if I could disable admin/build/block but still be able to get to admin/build/block/configure/block/
becase these pages have block settings other than just context related settings that need to be able to be accessed.
Unless there is another way of getting to these block configuration pages that I am not seeing, using the inline editor or something?
| Comment | File | Size | Author |
|---|---|---|---|
| #24 | context_admin_block-888540-24.patch | 3.6 KB | nicholas.alipaz |
| #19 | node-888540-comment-17.png | 172.92 KB | fxarte |
| #17 | node-888540#comment-4957887.png | 172.92 KB | fxarte |
| #11 | context_admin_block-888540-11.patch | 3.16 KB | nicholas.alipaz |
| #6 | context.core_.patch | 974 bytes | chellman |
Comments
Comment #1
yhahn commentedAgreed, perhaps a link from the inline editor blocks as well as a link from the backend editor.
Will look at this post 3.0.
Comment #2
xjmTracking. I actually wrote a shell script to turn this setting on and off because I have to do it so frequently. ;)
Comment #3
chellman commentedSubscribing. I was thinking of writing a module that does nothing but allow editing of the block body, but I'm not sure that's a good idea.
Comment #4
yareckon commentedDefinitely needed.
Comment #5
jeffschulermarked #993900: do not disable all elements of core block system as duplicate
Comment #6
chellman commentedTaking another look at this, it seems like all this feature does is unset menu items. It's not really disabling block module or anything more drastic.
So, instead of disabling admin/build/block*, might it be sufficient to just unset admin/build/block? That way the main block administration page is hidden, but it's still possible to get to other useful parts of the block UI (configuration screens being the big one).
If so, I've attached a patch for 6.x-3.x-dev that does it. If you're using 3.0, just replace context_menu_alter() in context.core.inc with this:
Comment #7
chellman commentedForgot to change status.
Comment #8
jeffschulerI've opened a related issue: #1000360: Contextual disabling of core block rendering: a feature request for the ability to disable core block rendering within in a particular context.
Comment #9
agileware commentedThis issue is related to the administration of blocks as opposed to the rendering of blocks.
Comment #10
kirkcaraway commentedI used this patch, and it does add a link to add new blocks, and a "list" link that brings up my themes. But clicking on those theme links brings up blank page, so there is still no way to adjust settings on individual blocks. This makes it hard to work on blocks if you use a theme that allows for block styling and other options. Any other solutions to this problem?
Comment #11
nicholas.alipaz commentedBeen running into this issue too. I want to do the following:
This patch accomplishes this, along with the following:
Hope this gets into the module. Please test!
Comment #12
nicholas.alipaz commentedBTW, anyone having trouble with the last patch or this patch not showing when testing likely needs to clear their menu cache.
Comment #13
fxarte commentedI tested the patch and it seems to mostly work as expected, only the third bullet, I could not find the tabs or it was not showing properly.
I used 6.22 with Garland
Comment #14
nicholas.alipaz commentedfxarte, did you clear the menu cache?
Comment #15
fxarte commentedHi
Yes I did clear the menu cache, and nothing.
Maybe I'm looking at the wrong place, they should be at: admin/build/block-context, right?
Comment #16
nicholas.alipaz commentedGo to admin/build/context/settings and disable the core block system.
Flush menu cache if needed.
If you use administration menu you may need to flush it as well, if it shows duplicate menu items
Then browse to admin/build/block-context
We can automate the cache flushing, this was just a first pass at the patch to see if it works from an operational standpoint for others here.
Comment #17
fxarte commentedAfter following those steps, this is what I'm seeing:
Comment #18
nicholas.alipaz commentedyour png didn't come through for one reason or another.
Comment #19
fxarte commentedsorry about that, let's see now
Comment #20
nicholas.alipaz commentedAs they say, a picture is worth a thousand words, and yours now indicates what you were saying which I hadn't really understood. You are missing the tabs I mentioned in my post.
I think I may have just mis-stated. They aren't tabs, they are simple links within the table list, as your screenshot shows:
Title configure delete
The configure and delete links are the "tabs" I mentioned.
Comment #21
fxarte commentedThen I can confirm that your patch works for me too.
Great!
Comment #22
fxarte commentedComment #23
nicholas.alipaz commentedThanks for setting as RTBTC, I think however the patch may need a small change. It should flush the menu registry whenever saving the settings. I will look into this.
As it stands you could end up with two sets of block configuration menu items when switching the "disable block administration" option back and forth.
Comment #24
nicholas.alipaz commentedIt looks like I was not getting duplicate menu items. It was only admin menu which was not having it's cache rebuilt. I have added the function for flushing the admin menu cache to my patch, but feel free to remove it and we can post an issue against admin menu if better fit to exist there.
Marking as RTBTC again since I only added 3 lines to the patch that would only effect those with admin menu.
Comment #25
kristen polThanks to everyone for the work on this issue. Closing as outdated as this is for Drupal 6.