I have been scratching my head as how to show a new region in the admin/build/block page. I am using a sub theme of Zen and have added the new regions to the info file and have added variable regions to the page.tpl.php in the sub theme. However none of the new regions will show up on the 'Blocks' page of drupal. Maybe adding regions like this need to be completely hard coded and the Blocks page cannot show these new regions or function in a similar manner like 'Left sidebar', 'Right sidebar' etc. Am I right in this or is there something that I am missing?

Comments

ridolfidesigns’s picture

I am not sure how it works with Zen as I have not used it much. But generally when I create a theme and find I need to add a region later on, I need to empty Drupal's cache before it will show up. I usually have the Devel module installed while developing a theme so I can easily empty the cache whenever I need to.

I would try that first. If that doesn't work then I am not sure what to do. Maybe somebody else would be of use at that point.

THanks,

Eric
Ridolfi Designs
http://ridolfidesigns.com
http://myspace.com/manofvalor25

nsurround’s picture

Thanks for your reply. The Zen theme is an off shoot of Garland. You can build a sub theme possibly more easier with it as many have done. I did find that once I set both the site theme and the admin theme to my Zen sub theme and cleared the cache that the regions then displayed correctly on the blocks page.

I am now looking for a way to theme my Primary and Secondary links so that depending on the region will display these menus either horizontally or vertically. I suppose you can do this with CSS and the page.tpl.php but maybe someone has devised a module to do this. All the menu modules I have seen so far style with drop downs (JS/css) or extend menu functions. A basic menu styling module would be great. Selecting either vertical or horizontal and then setting other font and list type styles such as font color, margins or padding, link status etc. If you know of one that will work with D6 let me know. Again thanks for the reply.

dougalputt’s picture

This is how I sorted my problem: http://www.codegobbler.com/drupal-6-how-embed-region-node

I have created a subdomain based on zen and had added in the Subdomain_Name_regions() function to my template.php file but it never showed up for my blocks to be placed into. When I followed the steps at the aforementioned website (giving him all the credit here as it saved me a problem!) and then CLEARED MY CACHE in Administration/Site configuration/Performance (at the foot of the page on mine was the clear cache button), then returned to blocks my theme was there!!!

schnakboy’s picture

Dang I was having the same problem for about 30 minutes .. clearing the cache worked.. thanks