siezi / phile-contact-form
Contact Form Plugin for PhileCMS
Installs: 89
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 0
Open Issues: 1
Type:phile-plugin
Requires
- phile-cms/phile: >=1.5.0
This package is auto-updated.
Last update: 2024-10-29 05:08:46 UTC
README
Add a simple contact-form onto a page which sends the form data to an email address.
1.1 Installation (composer)
"require": { "siezi/phile-contact-form": "*" }
1.2 Installation (Download)
- download this plugin into
plugins/siezi/phileContactForm
2. Activation
After you have installed the plugin you need to activate it. Add the following line to your /config.php
file:
$config['plugins']['siezi\\phileContactForm'] = ['active' => true];
3. Start
Set the email-address the contact form is send to:
$config['plugins']['siezi\\phileContactForm']['recipient-email'] = 'contact@example.com';
Put
(contact-form: simple)
onto the page where the contact form should be inserted.
4. Config
See config.php
.
Events
plugin.siezi.contactForm.send
Triggered when the received form data is processed.
By altering the returned success
parameter allows you to utilize the form data and perform your own action and/or suppress the default (send email).