Difference between revisions of "Wiki maintenance/Collections setup"

From Apache OpenOffice Wiki
Jump to: navigation, search
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
==Wiki Collections==
+
 
 +
[http://www.mediawiki.org/wiki/Extension:Collection Collections Extension]
  
 
See [[Help:Collections]] for information on how to use this extension.
 
See [[Help:Collections]] for information on how to use this extension.
Line 12: Line 13:
 
/** URL of PDF server */
 
/** URL of PDF server */
 
$wgPDFServer = 'http://tools.pediapress.com/cgi-bin/pdfserver.py';
 
$wgPDFServer = 'http://tools.pediapress.com/cgi-bin/pdfserver.py';
 
# $wgSharedBaseURL = 'http://wiki.services.openoffice.org/wiki/';
 
  
 
/** Namespace for "community collections" */
 
/** Namespace for "community collections" */
Line 20: Line 19:
 
/** Maximum no. of articles in a collection */
 
/** Maximum no. of articles in a collection */
 
$wgCollectionMaxArticles = 500;
 
$wgCollectionMaxArticles = 500;
 +
 +
/** Name of license */
 +
$wgLicenseName = null;
  
 
/** License article */
 
/** License article */
$wgLicenseArticle = 'OpenOffice.org_Wiki:Copyrights';
+
$wgLicenseURL = 'http://wiki.sevices.openoffice.org/wiki/OpenOffice.org_Wiki:Copyrights';
  
 
/** Template blacklist article */
 
/** Template blacklist article */
 
$wgPDFTemplateBlacklist = 'PDF Template Blacklist';
 
$wgPDFTemplateBlacklist = 'PDF Template Blacklist';
  
 +
/** Enable ODF Collections */
 +
$wgCollectionUseODF = true;
 
</source>
 
</source>
  
Line 39: Line 43:
 
</source>
 
</source>
 
The Toolbox div portlet is identified by the label <tt>p-tb</tt>.
 
The Toolbox div portlet is identified by the label <tt>p-tb</tt>.
 +
 +
 +
[[Category:Wiki Maintenance]]

Latest revision as of 12:21, 8 January 2009


Collections Extension

See Help:Collections for information on how to use this extension.

Modifications made to the MediaWiki install

Changes to LocalSettings.php

require_once("$IP/extensions/Collection/Collection.php");
 
/** URL of PDF server */
$wgPDFServer = 'http://tools.pediapress.com/cgi-bin/pdfserver.py';
 
/** Namespace for "community collections" */
$wgCommunityCollectionNamespace = NS_MEDIAWIKI;
 
/** Maximum no. of articles in a collection */
$wgCollectionMaxArticles = 500;
 
/** Name of license */
$wgLicenseName = null;
 
/** License article */
$wgLicenseURL = 'http://wiki.sevices.openoffice.org/wiki/OpenOffice.org_Wiki:Copyrights';
 
/** Template blacklist article */
$wgPDFTemplateBlacklist = 'PDF Template Blacklist';
 
/** Enable ODF Collections */
$wgCollectionUseODF = true;

Changes made to OOoSkin.php

Added this code after the Toolbox div portlet in OOoSkin.php

<?php
  if(isset($GLOBALS['wgSpecialPages']['Collection'])) {
     Collection::printPortlet();
  }
?>

The Toolbox div portlet is identified by the label p-tb.

Personal tools