AutoExportTemplatesAndFields by jaromic

AutoExportTemplatesAndFields module for ProcessWire

pw-autoexport-tf - AutoExportTemplatesAndFields module for ProcessWire

Installation


CAUTION: This module is not compatible with repeater fields or ProFields. See BUGS.

To install this module manually, simply put it into the site/modules directory of 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 are automatically 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, it has been implemented as a command line application and can be called as follows (assuming the php executable can be called as php and the working directory 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>

BUGS

  • (#1) This module is not compatible with repeater fields or ProFields. See this forum thread:

https://processwire.com/talk/topic/13758-autoexporttemplatesandfields-enables-continuous-integration-of-template-and-field-configuration-changes/

The BreakRepeaterFields module is included in the repository as a minimal showcase of what is breaking the repeater fields.

Contact


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

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

Install and use modules at your own risk. Always have a site and database backup before installing new modules.

Latest news

  • ProcessWire Weekly #547
    In the 547th issue of ProcessWire Weekly we're going to check out the latest core updates, introduce a couple of new modules, and more. Read on!
    Weekly.pw / 2 November 2024
  • Custom Fields Module
    This week we look at a new ProFields module named Custom Fields. This module provides a way to rapidly build out ProcessWire fields that contain any number of subfields/properties within them.
    Blog / 30 August 2024
  • Subscribe to weekly ProcessWire news

“ProcessWire is like a breath of fresh air. So powerful yet simple to build with and customise, and web editors love it too.” —Margaret Chatwin, Web developer