Displaying Drupal Mission on Every Page

Tags:

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.

Thanks!

Thank you! Your code was very useful to me today.

-glass.dimly

Submitted by glass.dimly (not verified) on Tue, 2008-07-29 10:27.

Tested...

Also works with Drupal 6.x

Submitted by Anonymous (not verified) on Thu, 2008-11-27 04:04.

Any chance on an update for

Any chance on an update for this? The original code is different in the latest version of drupal :(

Submitted by blackwinter (not verified) on Wed, 2009-08-19 15:56.

this is the reason why i love

this is the reason why i love the drupal it has got plenty of features, useful plugins, seo friendly and easy to use.

Submitted by stunning boy (not verified) on Wed, 2011-07-13 03:31.