Hi Everyone,
I know that there is something stupid that I am missing, but I've been staring at this for hours and I can't figure it out. Here is what I have in place.
I create the regions in my .info file. I have Header, Features, Left, Content, Right, and Footer. In the admin section I can see all of these regions and have assigned blocks (to some of them). The blocks that I have assigned are set to be available on all pages of my site (for the moment). I then load the homepage of the site and the only content that appears is the description for the page node.
I have the devel themer installed, and when I look at the Template Variables I am able to see the different regions, and the content inside of them -- so I know I am not trying to print an empty variable.
Does anyone have any thoughts?
A.
Comments
For every region you add in
For every region you add in the .info file, you also need to add that region into the page.tpl.php file for the theme. If you created a region called "header" in the info file, you would need to add the following code into the page.tpl.php where you want it to show up:
Hi Tim, Thanks for your
Hi Tim,
Thanks for your reply. I have done the if checks and put in divs for each of the regions. Tried clearing the cache, tried shutting down the web server, tried restarting my computer... nothing seems to work.
any other ideas.
A.
Can you copy your info file
Can you copy your info file and your page.tpl.php file so I can see it?
.info file -------- name =
.info file
--------
page.tpl.php
-------------
Change the following in your
Change the following in your info file and you should be okay!
Bad
Good
Kill me. Hahaha -- the
Kill me.
Hahaha -- the horrible quote monster strikes again. That did make the items show up so thank you tremendously for the help. Just one thing to note, which I am not sure if it is something I should worry about. I am now seeing messages that states..
* The block Admin was assigned to the invalid region 'right' and has been disabled.
* The block Development was assigned to the invalid region 'right' and has been disabled.
* The block Primary links was assigned to the invalid region 'header' and has been disabled.
* The block Navigation was assigned to the invalid region 'right' and has been disabled.
* The block Devel Node Access was assigned to the invalid region 'footer and has been disabled.
* The block blog_all_posts: Block was assigned to the invalid region 'content' and has been disabled.
Everything is still showing though. Is that normal? (sorry -- newbie on the loose here)
A.
Disable all blocks in your
Disable all blocks in your custom regions and flush all caches. Then you can re-enable the blocks in to those regions again.
Good luck with the site and the Drupal experience!
Also make sure you are
Also make sure you are outputting the regions you have defined in your page.tpl.php. For example, I see you have a region called 'feature', but it is not being output. Add
echo $feature;in your page.tpl.php.---
Yuriy Babenko | Technical Consultant & Senior Developer
http://yuriybabenko.com