Displaying Drupal Mission on Every Page
Keywords:
23
May
2007
Sometimes it may be desirable to display the mission on every page of your Drupal powered website rather than just the front page. With your PHP powered theme this is extremely easy to achieve.
Find the section in your themes page.tpl.php file that has the following code (or similar):
<?php if ($mission): print '<div id="mission">'. $mission .'</div>'; endif; ?>and replace it with:
<?php $mission = theme_get_setting('mission', false);
if ($mission != ""): ?>
<div id="mission"> <?php print $mission; ?> </div>
<?php endif; ?>This has been tested and confirmed to work with Drupal 4.6, 4.7 and 5.1.
About Us
NZ Web Hosting Internet Technolgies Blog.
Website design, website development, promotion and search engine optimisation.

Thanks!
Thank you! Your code was very useful to me today.
-glass.dimly
Tested...
Also works with Drupal 6.x
Any chance on an update for
Any chance on an update for this? The original code is different in the latest version of drupal :(