I installed the RC1 version of Drupal 6 and started theming. I want to add a custom block region, so I created the following theme.info file. The problem is, I added a new region called "preContent" but it never shows up in my block menus. Anyone know why?

; $Id: lugano.info,v 1 2007/01/03 23:27:32 Doughy $
name = Lugano
description = Custom for Lugano Restaurant.
version = VERSION
core = 6.x
engine = phptemplate
stylesheets[all][] = style.css
stylesheets[print][] = print.css

regions[left] = Left sidebar
regions[right] = Right sidebar
regions[content] = Content
regions[header] = Header
regions[footer] = Footer
regions[preContect] = Pre Content

; Information added by drupal.org packaging script on 2007-12-20
version = "6.0-rc1"
project = "drupal"
datestamp = "1198191307"

Comments

kulfi’s picture

Did you edit page.tpl.php to use $preContent?

doughy-1’s picture

Yeah. I added it to page.tpl.php as
<?php print $preContent ?>

By the way, there is a typo in the theme.info file, "preContect" should be "preContent." That's not the issue here though.

sherifmayika’s picture

> Blocks you will certainly see the region. Even if you have not placed the verialble in the page, the block willl be availabe

http://dreamweaverdrupalthemeextension.blogspot.com/

doughy-1’s picture

Right, by simply adding

regions[preContent] = Pre Content

should be enough to see it with the rest of the blocks. It never appears in the admin menus, however. That's the problem.

sherifmayika’s picture

you want
Pre Content
to appear on admin menu?
Or

Make sure that there is no spelling mistake
http://dreamweaverdrupalthemeextension.blogspot.com/

doughy-1’s picture

I want "Pre Content" to be a region where I can put blocks.

kulfi’s picture

Nothing very useful other than, (1) your .info file worked for me, (2) I'm assuming theme.info is actually named lugano.info.

jwolf’s picture

The theme registry needs to be cleared.

Install the devel module and clear cache.

See: http://drupal.org/node/132442#theme-registry

kulfi’s picture

Another of the reasons that makes the claim that D6 is better for themers doubtful.

dvessel’s picture

There is no doubt D6 is better for themers. That doesn't mean there aren't small pit falls.

Due to the nature of the change, caching was needed and once you know about these little issues it becomes very pleasant to use.

Put some time into it. Better docs will be included but if there are issues that stumps you, post them into the issue queue under "documentation".

This will be the new theming docs. Still incomplete but any input will help. > http://drupal.org/node/171179

doughy-1’s picture

This is ridiculous. I downloaded the Devel module and attempted to clear the cache. I also included the function drupal_rebuild_theme_registry() in my template.php file as stated in the link. It still does not work.

doughy-1’s picture

I finally got it to work by copying my theme, switching to the new one, then by switching back to the original.

Bug?

dvessel’s picture

No, the theme.info file is not stored in the theme registry. It's saved when you click submit in the theme admin page. Simply modifying your .info file will not show the changes. Resubmit the theme.

theme registry stores the available theme functions and templates. .info has nothing to do with that. This is mainly for performance reasons and great flexibility.

::notes this for the docs::

kulfi’s picture

::notes this for the docs::

FYI - D6 theming documentation also needs a Whats in/Whats out overview.

dvessel’s picture

There's the upgrade guide. If there's anything specific you found missing then file an issue.

http://drupal.org/node/132442

thanks

kulfi’s picture

Where should the issue be filed?

dvessel’s picture

In the upper right, you'll see "Create content". Go through there and select "issue" then "project: documentation".

Please be specific about the problem. Thanks.

btw, I'll keep your post in mind when adding to the docs. Input like that helps a lot but try to use the issue queue since the forums are more for user to user discussions.

kulfi’s picture

For anyone else looking for Drupal 6 theming documentation: http://drupal.org/node/209747

micahredding’s picture

I did all of the above steps, and nothing worked. I installed the Dev module, and cleared the cache. Still nothing. Finally, I used the Dev tools to re-install the system module.

Now it works.

vinoth.3v’s picture

because, the theme name and one module name were same, after renaming that module it works :)

Vinoth - வினோத்