Version 4 supported
This version of Silverstripe CMS is still supported though will not receive any additional features. Go to documentation for the most recent stable version.

Document Converter

The Document Converter module enables users to import a tree structure of pages, from sections and headings in a Microsoft Word document. It is ideal for when you want to quickly populate your website from your existing document resources.

Usage

Whether the document converter options will appear on your website it depends on how it has been set up. For this manual we will assume the conversion has been allowed globally.

Please note that the import process will replace the content of the page your are importing to, and it also has a licence to remove and replace all its children. It will still be possible to get the content back from the version history of the CMS, but it's good to keep that in mind.

Document converter import tab interface

If you upload the document straight away the simplest scenario will be executed:

  • The content of the main page will be replaced by the imported markup
  • The original document will be removed afterwards
  • The page will remain in draft mode for you to preview the output
  • All images that came with the document will be stored in the top level directory of the assets

The interface will allow you to fine tune your import options. Import will start as soon as you choose the file to import, so set up the options beforehand. The options are, from top to bottom:

  • Split document into pages: scans the document looking for level 1 or level 2 headings and puts each subsection into separate child page. It will cause the conversion process to replace the existing children pages completely. The initial part of the document until the first header occurrence will be added to the main page instead.
  • Keep the original document: prevents the removal of the uploaded document. The document will become available in the Files section of the CMS. Also, if the TOC has been enabled, the link will be automatically added to the main page.
  • Choose a folder to save this file: asset directory to be used for storing the original document and the image files that came along with the document.
  • Replace this page with a Table of Contents: will generate the Table of Contents and replace the main page content with it. Caution: this can remove some of the document content that would otherwise be added here (see the Split document into pages option above).
  • Publish modified pages: in addition to performing all other actions it will publish the pages. Reviewing the conversion outcome is advised before publishing, so avoid this option unless you are sure what will be produced.

Contributing

Translations

Translations of the natural language strings are managed through a third party translation interface, transifex.com. Newly added strings will be periodically uploaded there for translation, and any new translations will be merged back to the project source code.

Please use https://www.transifex.com/projects/p/silverstripe-documentconverter to contribute translations, rather than sending pull requests with YAML files.