Posted by rj on June 1, 2009 at 6:50am
Jump to:
| Project: | Node As Block |
| Version: | 6.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (fixed) |
Issue Summary
Hi, how do I get nodeasblock to save to the default theme rather than the currently active theme? I use the administration theme for content editing, which (I think) causes nodeasblock to save it with the administration theme instead of the default theme. What's the best way to fix this?
Comments
#1
This is a problem we currently have. alternatively, as administrator, you can go to the block admin page and enable the block in other themes you need to.
I am leaving this issue open to see what others have to say.
#2
I have committed a fix to this. Blocks are now saved to the default theme rather than currently active theme.
#3
Automatically closed -- issue fixed for 2 weeks with no activity.
#4
This doesn't work for me.
It still says "The block xxx was assigned to the invalid region %region and has been disabled." when trying to save to a region that only is in my default theme and not in my admin theme.
Tried beta-1 and dev.
#5
i am having the same issue
#6
Ok, I found the bug. The problem is that _block_rehash in block.module uses the active theme (global $theme_key) to updating the 'blocks' DB table with the blocks currently exported by modules. So, the block is placed in the active theme, and not in the default theme as expected.
http://drupal.org/cvs?commit=412388
Committed this fix, please test.
#7
Automatically closed -- issue fixed for 2 weeks with no activity.