Simple, powerful, beautiful websites.
For the longest time, I thought that there was a bug in Panels. Why? Because I would add the Mission statement to panels, and it wouldn’t show up. Well, guess what? There is no bug!
For some reason (probably legacy code), Drupal makes the assumption that you would only want to show your mission statement on the front page of your website. So, the PHP Template engine removes the $mission variable from your page.tpl.php file if the front page is not being displayed. But… fear not! I’ve found a solution courtesy of Kineta Systems blog:
// populate the $mission variable on every page so we can use it universally
// don't check
if (!$vars['is_front']) {
$vars['mission'] = filter_xss_admin(theme_get_setting(’mission’));
}
?>
Leave a Reply