Closed (fixed)
Project:
Omega
Version:
7.x-3.0
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Reporter:
Created:
24 Feb 2011 at 12:52 UTC
Updated:
25 Apr 2012 at 14:23 UTC
Jump to comment: Most recent
I couldn't see page titles for the Contact page, or Taxonomy term pages, the variable $title was empty (according to region--content.tpl.php).
I put this code at the top of region--content.tpl.php and the problem seems to go away:
if(!$title) $title=drupal_get_title();
I know this isn't the correct behaviour or the best place to fix the problem, but it works for my purposes.
Any chance I'm NOT imagining this ... any chance of a real fix?
Comments
Comment #1
himerus commentedInteresting.... I'm not sure where/what caused this... I am seeing it though in my dev environment (when checking the contact page)
I'll look into this one and get it fixed up.
Comment #2
himerus commentedIt appears this is only happening on system pages (contact, my account, etc.)
Upping the priority a bit, and I'll work to have this resolved today. I'm planning the Beta4 release following the conclusion of the Git migration today.
Comment #3
himerus commentedFixed in stable 2.0 release.
Comment #4
matt_harrold commentedAwesome Sir. Many thanks for such a prompt fix.
Comment #6
RmrJmrGrl commentedWas this fixed for article pages as well? I'm on 7x.2.1 release and have no titles on my article pages.
ex -- http://drupal7test.cahabamedia.com/?q=article/bakken-shale
If so, how do you upgrade your sub-theme to use the beta version of Omega?
Comment #7
zeta1600 commentedI am having this same issue. My page, posts, product titles are not showing up. I am not able to find drupal_get_title() on any files in 3.0.
When I change the theme to Bartik, the titles show up just fine. Please help.
Comment #8
ethantHaving similar problem with same version, the difference being title only shows on front page, and system tabs are missing. I checked to make sure I have them enabled in the theme settings, and I do.
Comment #9
technikh commentedhaving same issue as #8
Title shows up on front page but not on other pages. also tabs are missing
Comment #10
mspano commentedHaving same issue as #7. When I change the theme to Bartik, the titles show up just fine.
Edited
solved in my case.
I copied node.tpl.php from "omega/omega/templates" to "my-custom-theme-omega-based" and added
<?php print $title; ?>berfore<?php if (!$page && $title): ?>the end result was:
correcting: the above solution does not work on pages generated by Views
Comment #11
allentian commentedthanks, mspano.
I encounter the same issue. And with your solution, I fix it.