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
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 :(
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.
I also confirmed this code
I also confirmed this code and its working 100% at my site.
Thanks for sharing
Zarah Alvie