Last updated October 1, 2006.

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!

Comments

Hi,

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 :-) -

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

Thank you!!!!!!

Wonderful, it works!

Thank you thank you thank you!! :-)

:-)

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 :-) -

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

Yes!

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

and I'll show you round New Zealand

This saved by bacon. Cheers :)

Ben W

it works!

Thank you so much!
It works fine!

Which table stores the mission statement

Hello,
I upgraded drupal, yet saved the old database. I am loading the old data into the new site, yet having difficulty finding some information in the old database. I would appreciate if you would be able to let me know where the mission statement loads, so I can retrieve it.
Thanks in advance.

Here is another way from

Here is another way from http://drupal.org/node/358018#comment-1197349

<?php
function themename_preprocess_page(&$variables) {
     
$variables['custom_mission'] = variable_get('site_mission', '');
}
?>

I think it's a better way.

Love Design, Love Drupal...

Make sure mission is checked off

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

About this page

Forums
Post installation

Theming Guide