Would it be possible to add an option for each version of the front page (anonymous/authenticated etc) to let the admin select on which version they want the mission statement to show on, instead of just relying on the overall setting in the theme?

Comments

geodaniel’s picture

Just to give an example, it would be nice to be able to show the mission statement to logged-in users but not to the anonymous users. Or vice versa.

dublin drupaller’s picture

Version: master » 5.x-1.6

hi geodaniel,

Thanks for submitting the feature request. I think it's a good idea, but, I think I'll wait until the next release before adding it in, to make sure other users will use it.

In the meantime, for anyone who just wants to display the mission statement to logged in users, you can use the following snippet:

<?php
print "<div class=\"mission\">" . variable_get("site_mission", "") . "</div>";
?>

When using the above in a front_page setting text area, make sure to select the allow php option before saving. Please note, the above snippet will display the mission statement regardless if you have the mission statement switched on/off on your site settings page.

Dub

dublin drupaller’s picture

just closing off a stray STRONG tag in my previous post.

geodaniel’s picture

Thanks Dub - good suggestion for a workaround :)

Phillip Mc’s picture

Status: Active » Closed (fixed)