No description, website, or topics provided.
Switch branches/tags
Nothing to show
Clone or download
Latest commit 8d68ee3 Aug 24, 2016
Type Name Latest commit message Commit time
Failed to load latest commit information. Update Aug 23, 2016
LICENSE init Comit Aug 23, 2016 Update Aug 23, 2016
blueprints.yaml Update GitHub links in blueprints.yaml Aug 23, 2016
form-database.php init Comit Aug 23, 2016
form-database.yaml init Comit Aug 23, 2016

Form Database Plugin

The Form Database Plugin is for Grav CMS. This is a extension to the normal Form-Plugin. With this plugin you can save added forms to your MySQL Database.


General Settings

Fill in the requires information in the user/plugins/from-database/from-database.yaml file, or use the Admin Template to make it in a GUI.

enabled: true
mysql_server: localhost
mysql_port: 3306

Individual Form Settings

Additional to the general Settings you need following Form specific settings:

db: <<Your DB Name>>
table: <<Table Name>>
fields: { <<DB_Field1>>: <<Form_Field1>>, <<DB_Field2>>: <<Form_Field2>>, ... }


                from: '{{ }}'
                to: ['{{ }}', '{{ }}']
                subject: '[Site Contact Form] {{|e }}'
                body: '{% include ''forms/data.txt.twig'' %}'
                db: myCompany
                table: contacts
                fields: { name: name, e-mail: email, phone-fixnet: phone }