Created
November 5, 2013 17:49
-
-
Save raynimmo/24278d66d0935c829e34 to your computer and use it in GitHub Desktop.
Drupal page-title hack; used from page.tpl.php *note GET-q will be discouraged in D8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if (!isset($path)) { | |
$nodepath = $_GET['q']; | |
} | |
if ($nodepath == 'contact') { | |
$title = 'Get In Touch'; | |
} | |
if ($nodepath == 'blog') { | |
$title = 'Design & Development Portfolio'; | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment