About Automatic Export and Automatable Import for Templates and Fields

AutoExportTemplatesAndFields module for ProcessWire

Category 1Development Tools
Modules that have more to do with assisting development of a site rather than managing its content.
Category 2Import/Export
Modules that work with importing or exporting data.
Release StateBeta
Close to stable, but users are advised to be cautious and test thoroughly.*
Authorjaromic
Module Version1.0.1
Class NameAutoExportTemplatesAndFields
Compatibility2.6, 2.7, 3.0
Date AddedJuly 12, 2016
Last UpdatedSeptember 7, 2016
Recommended ByNew recommendations may take up to 1 day to appear.

Instructions

This module's files should be placed in /site/modules/AutoExportTemplatesAndFields/
How to install or uninstall modules

README

pw-autoexport-tf - AutoExportTemplatesAndFields module for ProcessWire

Installation

To install this module manually, simply put it into the site/modules directoryof your ProcessWire installation, so that directory should look like this:

site/modules/
  AutoExportTemplatesAndFields/
    AutoExportTemplatesAndFields.module
    cli/
       import.php
  ...

Usage

Automatic export when changing fields/templates

After installing the module, all changes to fields and templates areautomatically exported after the respective request to the directory specified via the module's persistDirectory setting.

Import via command line

In order to facilitate executing the import as part of an automated process, ithas been implemented as a command line application and can be called as follows (assuming the php executable can be called as php and the workingdirectory is the root of the ProcessWire installation):

php site\modules\AutoExportTemplatesAndFields\cli\import.php --import

The import automatically creates a database backup which can be restored using:

php site\modules\AutoExportTemplatesAndFields\cli\import.php --restore <path>

Contact

I am looking forward to hearing from you: Contact me michael.jaros@jarosoft.at for any issues or suggestions regarding this moduleor just drop an issue on github:

https://github.com/jaromic/pw-autoexport-tf/issues

Comments

No comments yet. Be the first to post!

Post a Comment

Your e-mail is kept confidential and not included with your comment. Website is optional.