Available regions pulled from zen theme, not subtheme.
dzazi - October 13, 2008 - 02:46
| Project: | Node As Block |
| Version: | 5.x-1.x-dev |
| Component: | User interface |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
Hi,
I am using a subtheme based on zen, and I'm having a bit of trouble using nodeasblock, as it is olnly allowing me to set the default regions that exist in the main zen theme, not the subtheme. This means that whenever i edit a node, it's resetting the block region to none.
I have tried setting the defaults on the content type, but as stated, the only regions it allows are those from the zen theme, not the subtheme (which has more).
Any suggestions?

#1
Hi Dzazi,
I came across a related problem in the 5.x-1.1 version. (I haven't tried 1.x-dev).
The problem is that it's using the global $theme variable to look up blocks rather than $theme_key. If you can find a line like "system_region_list($theme)," it should be "system_region_list($theme_key),"
And then you'll also have to declare "globa $theme_key" at the top.
Eli
#2
My patch is here: http://drupal.org/node/322233
#3
Eli,
I have a question, are you using your zen subtheme also as the administrator theme?
The problem I has was that the regions given for node-as-block came from my admin theme and not from my default theme.
I just commented out the whole region settings part of the module and used block module interface the set the regions, that worked like a charm when u are using an admin theme, and I bet it'll also work when using subthemes.
Btw I'm using this module (http://drupal.org/node/242200#comment-793908) to keep Drupal from switching in and out of admin theme. Don't think it should interfere with node-as-block though,
Cheers,
Bartezz