OpenWetWare:Software/Extensions/HeaderFooter: Difference between revisions

From OpenWetWare
Jump to navigationJump to search
No edit summary
No edit summary
Line 1: Line 1:
==HeaderFooter Extension==
==HeaderFooter Extension==


See http://www.mediawiki.org/wiki/Extension:Header_Footer for original extesnion.
See http://www.mediawiki.org/wiki/Extension:Header_Footer for original extension.


This also uses a second extension, ArticleCacheClass, by the same author.  
This also uses a second extension, ArticleCacheClass, by the same author.  

Revision as of 17:33, 27 November 2007

HeaderFooter Extension

See http://www.mediawiki.org/wiki/Extension:Header_Footer for original extension.

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