How to display mission on every page?

gabble - June 23, 2005 - 07:16

This seems an easy one, but I can't figure out how to display the site mission on every page, it only shows in the home page...

I am using a self-made php template, and I have the following line in page.tpl.php:

<?php if ($mission != ""): ?><div id="mission"><?php print $mission; ?></div><?php endif; ?>

Hope you can help me, TIA!

Hi,

kuba.zygmunt - June 23, 2005 - 08:13

Hi,

Please try:

<?php
$mission
= theme_get_setting('mission', false); 
if (
$mission != ""): ?>

<div id="mission"><?php print $mission; ?></div><?php endif; ?>

function theme_get_setting($setting_name, $refresh = FALSE) retrieves setting for actual theme :-)

- I wonder how am I perceived when passion enters me :-) -

Thank you!!!!!!

gabble - June 23, 2005 - 09:30

Wonderful, it works!

Thank you thank you thank you!! :-)

:-)

kuba.zygmunt - June 23, 2005 - 10:11

I know it works :-) I've tested it :P

As the reward maybe you invite me to the Italy :P
- I wonder how am I perceived when passion enters me :-) -

Yes!

gabble - June 23, 2005 - 11:19

Come to Italy and be my guest, I'll show you around! ;-)

and I'll show you round New Zealand

inthahousejamin - August 28, 2006 - 06:41

This saved by bacon. Cheers :)

it works!

docker - November 23, 2007 - 08:58

Thank you so much!
It works fine!

Make sure mission is checked off

erifneerg - November 22, 2008 - 18:15

This was giving me a headache for 2hr and couldn't figure out why my mission statemnet wasn't showing up. It's under the theme config page. as seen in the image:
http://skitch.com/erifneerg/hc1j/mission

 
 

Drupal is a registered trademark of Dries Buytaert.