Hi,
I have created a view for my latest news page but the page title "Latest News" is not displaying. The same is true of the drupal contact form page, no page title.
I switched the themes and the titles came up so I'm assuming this is something to do with the way titles are being printed. On other themes print $title; is in the page.tpl.php aswell as the node.tpl.php but in this theme there is no print $title; in the page.tpl.php.
I tried amending it myself but don't really know a whole lot about php so if you could come back with a fix that would be great.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | Print view titles.txt | 326 bytes | wescottgj |
Comments
Comment #1
wescottgj commentedSolved!
Comment #2
wescottgj commentedFor anyone else that has had the same issues see attached to fix it.
Comment #3
wescottgj commentedComment #4
gtsopour commentedHello wescottgj,
you are absolutely right with your mention. Based on Drupal core Garland theme and on your comments, I made and committed the following changes at page.tpl.php and node.tpl.php.
page.tlp.php
Add before $tabs rendering the following code
node.tpl.php
Make the following change
From
To
These changes will be included in next CorporateClean release 7.x-1.1
Thanks
/George
Comment #5
gtsopour commentedI changed the issue's category from feature request to bug report. Thank you for your understanding.
Comment #6
jenyaart commentedI used the #4 fix and that worked: the title are now showing on Views. However this fix created another issue.
Now the title also shows up on the Homepage even though the entire "content" region on home page is disabled via Context module.
George, any chance you can make the title go away when it's not needed? =)
Thank you for the fix btw!
Comment #7
jenyaart commentedJust figured it out myself... smart lil me =)
Here is the updated code to put in page.tpl.php