Extension:DocxConverter

From MediaWiki.org
Jump to navigation Jump to search
MediaWiki extensions manual
OOjs UI icon advanced.svg
DocxConverter
Release status: experimental
Implementation Special page
Description Convert simple .docx documents to MediaWiki pages
Author(s) Lainstalk
Latest version 0.8
MediaWiki 1.16
License GPL
Download
Check usage and version matrix.

Basic info[edit]

DocxConverter is a MediaWiki extension that provide conversion of simple .docx documents to MediaWiki page. User can upload one document or .zip archive with documents.

Usage[edit]

User upload single .docx document or .zip archive with documents to Wiki. Next he must correct the converted text (if necessary) and write a title for the page. Main site of extension provide a table with converted and published documents.

Installation[edit]

  • Download the source code and place it in $IP/extensions/DocxConverter/
  • Directory DocxConverter/archives must be writable
  • Add the following to LocalSettings.php:
require_once( "$IP/extensions/DocxConverter/DocxConverter.php" );
  • Create db table converter.
CREATE TABLE IF NOT EXISTS `converter` (
  `id` int(10) NOT NULL AUTO_INCREMENT,
  `title` varchar(255) COLLATE utf8_bin DEFAULT NULL,
  `text` mediumblob,
  `date_edit` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  `date_add` datetime DEFAULT NULL,
  `filename` varchar(100) COLLATE utf8_bin DEFAULT NULL,
  `status` smallint(3) DEFAULT NULL,
  `user_id` int(11) DEFAULT NULL,
  `url` varchar(270) COLLATE utf8_bin DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 COLLATE=utf8_bin AUTO_INCREMENT=1 ;
  • Installation can now be verified through the wiki's Special:DocxConverter

Caution[edit]

Extension is still in experimental version and can convert simple documents with standard styles.