By remi on
Hi,
I've been trying to develop a new private theme using the PHPTemplate engine since 2 days now and there's still a problem that's preventing me from achieving my work.
The variables $sidebar_left and $sidebar_right are always empty. No matter what I do, they always contain nothing. They are also empty when using the civicspace theme, but they have the correct content when using the kubrick theme.
I've check their source codes and I don't see any difference that would lead $sidebar_left and $sidebar_right to be forever null.
Any ideas? Thanks in advance.
Comments
I gave up
Well, I finally gave up and wrote my own function in template.php that resembles the theme_blocks() function in the Drupal API.
It works. Yet, I've stumbled across something: theme_block($block) in my custom-made function will return the correct HTML while theme('block', $block) returns absolutely nothing. It's puzzling.
I suspect everyone's just
I suspect everyone's just confused. It works for me so I am not sure what to tell you.
Here's my page.tpl.php in process. It's essentially what I am using on my site now.
http://www.blkmtn.org/index.php?q=node/232
-sp
---------
Test site, always start with a test site.
Drupal Best Practices Guide -|- Black Mountain
-Steven Peck
---------
Test site, always start with a test site.
Drupal Best Practices Guide
Just an update
Well, it's working now. No worries.
$sidebar_right empty in 4.7 with phptemplate
It would be nice to know WHY it's working now.
Works fine on my home machine, then when I upload it to the server, it doesn't.
Both have Drupal 4.7 just installed, both have PHP 4.4.1.
It's theme related, though. (bluemarine works, my custom theme doesn't, on the server. Though "it works at home."
same problem drupal 5
Hi
I am having the exact same problem on drupal5 with a custom theme. on my local machine the sidebars show up when they should,
moved over to live server and sidebar_left and sidebar_right are always empty unless I use a different theme.
I also have this problem of
I also have this problem of only the sidebar_right which is always empty or not parsed in my custom template
Trojkolka
...
Please start a new thread. The differences between 4.6/4.7 and now are vast.
-Steven Peck
---------
Test site, always start with a test site.
Drupal Best Practices Guide -|- Black Mountain
-Steven Peck
---------
Test site, always start with a test site.
Drupal Best Practices Guide