OpenWetWare:Software/Extensions/HeaderFooter: Difference between revisions
(New page: ==HeaderFooter Extension== This extension currently (11-27-2007) is being used to display a message regarding surveys. The previous extension I used for this, SpecialHeader was not reliab...) |
No edit summary |
||
Line 1: | Line 1: | ||
==HeaderFooter Extension== | ==HeaderFooter Extension== | ||
See http://www.mediawiki.org/wiki/Extension:Header_Footer for original extesnion. | |||
This also uses a second extension, ArticleCacheClass, by the same author. | |||
This extension currently (11-27-2007) is being used to display a message regarding surveys. The previous extension I used for this, SpecialHeader was not reliable. | This extension currently (11-27-2007) is being used to display a message regarding surveys. The previous extension I used for this, SpecialHeader was not reliable. |
Revision as of 17:32, 27 November 2007
See http://www.mediawiki.org/wiki/Extension:Header_Footer for original extesnion.
This also uses a second extension, ArticleCacheClass, by the same author.
This extension currently (11-27-2007) is being used to display a message regarding surveys. The previous extension I used for this, SpecialHeader was not reliable.
To modify the contents of the displayed header, do it here:
Template:SurveyHeader
This template is used by 2 other pages:
For the main namespace: header For the project (OpenWetWare) namespace: OpenWetWare:Header
The following code needs to be added to enable the notice for a namespace AFTER the include of the extension files:
$hfObj->setNsParams(<namespace constant>, array('enable'=>true)); // enable header for a specific namespace
Current Namspaces used:
$hfObj->setNsParams(NS_MAIN, array('enable'=>true)); // enable for the main namespace $hfObj->setNsParams(NS_PROJECT, array('enable'=>true)); // enable for the project (OpenWetWare) namespace
Defined namespaces to use:
NS_MAIN NS_TALK NS_USER NS_USER_TALK NS_PROJECT NS_PROJECT_TALK NS_IMAGE NS_IMAGE_TALK NS_MEDIAWIKI NS_MEDIAWIKI_TALK NS_TEMPLATE NS_TEMPLATE_TALK NS_HELP NS_HELP_TALK NS_CATEGORY NS_CATEGORY_TALK