By demon326 on
Hello all, i'm trying to convert our own theme to drupal 7, but i'm having some issues... when i want to render the region it just won't show up in the region previewer, it even wont render..
heres my region define thingies:
regions[help] = Help
regions[hello] = Hello
regions[sidebar_first] = First sidebar
regions[sidebar_second] = Second sidebar
regions[navigation] = Navigation bar
regions[highlight] = Highlighted content
regions[content] = Content
regions[header] = Header
regions[footer] = Footer
regions[bottom] = Page bottom
regions[page_top] = Page top
regions[page_bottom] = Page bottom
the "Hello" is a test region, it there on the block sorting screen, you can assign blocks to it, but the content just won't render...
i use this code to print it; print render($page['hello']);
Comments
if there in the block admin
if there in the block admin and you can select then you .info (thingies) are fine. Its your page.tpl
yeah, there is realy
yeah, there is realy something wrong, i can even remove the *.tpl.php files and the themes stays working, so it must get its data from a other place.... i think it's a cache issue in Alpha2.. will wait on the next release to see if its fixed....
have you tried clearing the
have you tried clearing the cache in admin / configuration / performance?
yes, multiply times, even the
yes, multiply times, even the browser cache...
it must one of the following issues:
1) caching is broken
2) it uses other *.tpl file, but thats not possible...
i even deleted all the .tpl files in my theme folder, and yet the theme works and all the other themes are disabled....
can you change : <?phpprint
can you change :
into
and see if this is the problem?
--------------------------------------------------------------------------------------------------------
if you can use drupal why use others?
VicTheme.com
mmn i got it working! it
edit: it worked, but when i try to add my other, real regions it throws errors:
Fixed it all... its was the
Fixed it all... its was the fault of template.php. i still have a question and need home help, i need to add a "span' tag around my li-tabs but i don't know how....
I have no idea how to do that
I have no idea how to do that in D7, haven't touched that version but in D6 you have to create a new override function in template.php like :
--------------------------------------------------------------------------------------------------------
if you can use drupal why use others?
VicTheme.com
how?
You have fixed it, but can you tell me how?
drupal 7 New codes in page.tpl not showing up
hello
i add some codes with a new region to page.tpl.php
but nothing change in website codes
i cleared cash many time no affect
Verify that you are not LOG-IN already
I had this issue, and I was logged in. When you have the log-in block by itself, nothing will show up in that region while logged in.
I used echo render($page['region_name']); and worked after I logged out.
Re regions not showing
Hello I encountered this issue of my regions not rendering. I solved it when I discovered that the Main content had to be put in the content region which is compulsory. Once that is in place everything worked fine.