How can I keep the mission statement on every page? I have the same code <?php print $mission; ?> but the mission only shows up on the homepage. How can I force this to change?

Comments

abdu’s picture

You can set this in the theme configuration Page

admin/build/themes/settings/{name-of-your-theme}

Options available
Display mission statement only on front page
Display mission statement on all pages

chrisblackwell’s picture

I don't see that option on my theme, the Global settings, nor the Garland theme. Do I have to enable something else?

abdu’s picture

Some themes only support configuring.

You can add mission to display in template.php

function phptemplate_preprocess_page(&$vars) {
  ..
  ..
  $vars['mission'] = theme_get_setting('mission', false);  
  ..
  ..
}
TheLupine’s picture

thank you abdu, that was very helpful!

agater’s picture

Hi. TheLupine & Abdu,

I am having an identical problem. I have tried adding the function

function phptemplate_preprocess_page(&$vars) {
$vars['mission'] = theme_get_setting('mission', false);
}

to template.php, but the variable \$mission remains null on any page except home! I have also set the "mission on all pages" option.

can you please let me have more graphic details of what abdu is explaining? I'd really like to nail this one.
many thanks and happy new year etc.

agater’s picture

seems to be working now!

ronsnow’s picture

Just to add my Thanks!

function phptemplate_preprocess_page(&$vars) {
$vars['mission'] = theme_get_setting('mission', false);
}

Clean, simple, and it works.