<< Chapter < Page Chapter >> Page >

This importer will overwrite the current CNXML module with the contents of the file provided, so only use this method when working with a new module or when you are sure you don't mind starting over.

Several authors have asked if we provide support for offline CNXML editing. While we do not currently provide such support, we are interested in developing this at some point in the future provided there is sufficient interest for our authors. If you would be interested in contributing to this development, please email techsupport@cnx.org and let us know!

Zip importer

The ZIP Importer is unique in that it is the only importer that does not necessarily overwrite the contents of the module. The contents of the .zip file are uploaded to the Files tab of the module, replacing/updating any contents of the same name that already exist.

  • If the ZIP file contains a file called index.cnxml , then the module contents are overwritten just as they are with the Plain CNXML importer.
  • If the ZIP file contains files with the same name as previously attached files, then those files are replaced with the new version. This feature makes the ZIP importer a convenient way to update several images, downloads, or other supporting resources at once.
  • If the ZIP file contains files which are not already attached to the module, then those files are added just as if they had been added manually through the Files tab. This feature makes the ZIP importer a convenient way to "batch upload" several new supporting resources at once.
The module file structure does not support folders or subdirectories. Any folders or subdirectories in the zip file that you import into a module will be ignored.

Using the module importers

  1. If you have not already done so, create a new blank module.
  2. Use the help documents linked above to ensure you have prepared your document correctly; otherwise you may get an error.
  3. The importer dropdown menu is accessible on both the module Content tab and the Files tab when editing the module. Choose the importer type from the dropdown menu and click Import .
    The module import menu (expanded).
    The module import menu (expanded).
  4. On the next page, browse to your saved file on your harddrive and click Import .
Browse to file.
The import document page.

You can mix and match any of the different importer types to meet your needs; for example, you can upload new files while simultaneously updating existing images, replace the index.cnxml file without affecting other existing resources, etc. This importer can be used as a batch uploader, as an extension of the Plain CNXML importer, or in conjunction with with the ZIP exporter .

Importing a collection

Importing collections is currently not supported; however, we have recently begun laying the groundwork to make this feature available at some point in the future. If you are a developer and would like more information regarding the current support of exported or third-party CollXML documents, please contact techsupport@cnx.org for assistance.

Exporting a module

You can export a module for offline editing, to create a backup of your content, or to use with an external platform that supports the use of CNXML documents. You can export a module from your workgroup by checking it out and using the "Export" menu in the module editor:

Get Jobilize Job Search Mobile App in your pocket Now!

Get it on Google Play Download on the App Store Now




Source:  OpenStax, Understanding reusable modules in connexions. OpenStax CNX. Mar 29, 2013 Download for free at http://cnx.org/content/col11503/1.1
Google Play and the Google Play logo are trademarks of Google Inc.

Notification Switch

Would you like to follow the 'Understanding reusable modules in connexions' conversation and receive update notifications?

Ask