Stores MODX FormIt extra data to jSon and lists them via custom manager.
PHP JavaScript HTML
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
_build
assets/components/formitlog
core/components/formitlog
.gitignore
config.core.php
readme.md

readme.md

FormItLog Extra for MODx Revolution

Author: Kilian Bohnenblust kilian@sofasurfer.ch

  • Hook for FormIt Extra to store all posted form data in a jSon file.
  • Simple MODX manager to list and edit posted data.
  • CVS export functionality

Installation

Documentation

To store FormIt posted data simplye add the FormItLog hook to your snippet call.

[[!FormIt?
   &hooks=`spam,FormItLog,email,redirect`
   &logfile=`[[++formitlog.logfile]]`
   &emailTo=`[[++emailsender]]`
   &emailUseFieldForSubject=`1`
   &successMessage=`Thank You!`
   &validate=`name:required,
      text:required,
      email:email:required,
      workemail:blank`
]]

For security reason it's recommended to add the following rule to your .htaccess file, so the log file can't be read from the web.

# to protect formit log file 
<Files formitlog.json >
	order allow,deny
	deny from all
</Files>