Jump to content

Extension:DirectoryManager: Difference between revisions

From mediawiki.org
Content deleted Content added
Royce (talk | contribs)
m →‎Dependancy: spelling fix, standardize on plural for consistency
Line 25: Line 25:
* Highly customizable through 'hooks'
* Highly customizable through 'hooks'


== Dependancy ==
== Dependencies ==
* [[Extension:StubManager|StubManager extension]]
* [[Extension:StubManager|StubManager extension]]



Revision as of 22:20, 3 July 2011

MediaWiki extensions manual
DirectoryManager
Release status: beta
Implementation Hook
Author(s) Jean-Lou Dupont
Latest version See SVN
MediaWiki tested on 1.10 but will probably work with earlier versions
License No license specified
Download SVN

Purpose

Provides a namespace 'Directory' for browsing the filesystem of a MediaWiki installation.

Features

  • Directory tree structure roots on MediaWiki installation
  • Security: enforcement of the 'read' right
  • Integrates with Extension:FileManager
  • Highly customizable through 'hooks'

Dependencies

Notes

It is recommended to use:

$wgCapitalLinks = false;

in LocalSettings.php; default MediaWiki behavior is to capitalize title names - which does not help with filesystem behavior on certain operating systems.

NS_DIRECTORY namespace

Furthermore, the namespace NS_DIRECTORY must also be defined in LocalSettings.php. See Manual:Using_custom_namespaces for details. In short, you could do:

 $wgExtraNamespaces[100] = "Directory";
 define("NS_DIRECTORY", 100);
 $wgNamespaceProtection[NS_DIRECTORY] = array( 'read' );
 $wgContentNamespaces[] = 100;

Usage

To use the extension, visit, for example, the top level directory of the NS_DIRECTORY namespace. Assuming 'Directory' as a canonical name for the 'NS_DIRECTORY' identifier:

Directory:/

Installation

To install independantly from BizzWiki:

  • Download & Install Extension:StubManager extension
  • Dowload all this extension's files and place them in the desired directory, e.g. \extensions\DirectoryManager\
  • Apply the following changes to 'LocalSettings.php' after the statements of Extension:StubManager:
require('extensions/DirectoryManager/DirectoryManager.php');

History

  • Fix for empty $files list
  • Fix for capital letter annoyance
  • Added '#directory' magic word
  • Added 'green' anchors for directories

See Also

This extension is part of the BizzWiki Platform.