I've been struggling with an issue that I've documented here, http://drupal.org/node/265839, thinking I had something wrong with my theme, etc. That forum post has a very simple theme that I used to replicate the issue. In a nutshell, if I have Views Panes enables the $title variable in page.tpl.php is empty but is populated properly in node.tpl.php. This is happening even when I'm rendering an individual node. If I disable Views Panes the problem does not manifest itself.
Comments
Comment #1
KarlKedrovsky commentedJust to add a bit more info regarding the criteria for reproducing the bug... This only seems to be a problem when we're viewing pages/nodes that have a mini panel block displayed along with it. If we navigate to a node that does not have the mini panel block displayed with it the $title variable is set just fine in page.tpl.php.
Comment #2
KarlKedrovsky commentedI just upgraded to beta5, retested and the issue still exists.
Comment #3
zach harkey commentedI've been documenting my struggle with a similar issue on this thread:
Preserving the node title as page title with node overrides
The issue you are describing is just as problematic because it prevents any access to the title at the theme level, greatly limiting the display possibilities.
Comment #4
sdboyer commented@KarlKedrovsky - could you provide me with a var_dump of the variables available in page.tpl.php with views_panes/mini_panes/whatever makes a difference both enabled and disabled?
Comment #5
merlinofchaos commentedIs your views pane using the 'page' mode of the view? If so that is possibly part of the problem, as a 'page' view thinks it owns the title.
Comment #6
KarlKedrovsky commentedHaving the view type of "page" in the "views panes" was the problem. I just changed it to "block" and it worked like a champ. Thanks and sorry it took me so long to get back to you.
Comment #7
vood002 commentedThis is an important post and I think it should be marked as such. I was banging my head against the wall, but changing this from page to block in views-panes did indeed fix the problem immediately.