This package protects the default contact form of Plone which is generally accessible via /contact-form. It provides a checkbox in the controlpanel to disable it globally and adds a (H/Re)captcha field depending on your installation.
Project description
collective.contactformprotection
This package protects the default contact form of Plone which is generally accessible via /contact-info. If you have installed this product, you can go to the Contacformprotection Control Panel and adjust its settings.
Settings
Provide a checkbox in the controlpanel to disable the form globally
Add a H/Recaptcha field depending on the installed 3rd party addon plone.formwidget.[h|re]captcha.
Captcha support
If you have installed plone.formwidget.recaptcha or plone.formwidget.hcaptcha it is automatically added to the form. In case both are installed. In case both are installed, you can make a choice in the controlpanel.
You can install the packages by adding the extra_required to this package:
[buildout] ... eggs = collective.contactformprotection[hcaptcha,recaptcha]
The settings mentioned above are all set in the configuration registry. See plone.app.registry how to set these values TTW or in a package profile.
Installation
Install collective.contactformprotection by adding it to your buildout:
[buildout] ... eggs = collective.contactformprotection
and then running bin/buildout
Customizing Captcha vocabulary
The captcha settings is provided by a zope vocabulary with enhanced term objects:
class CaptchaVocabItem(object): def __init__(self, token, value, widget=None, validator_view=""): self.token = token self.value = value self.widget = widget self.validator_view = validator_view
If you have additional captcha addons or want to override the provided widget and validator view, you can override the vocabulary utility contactformprotection.captchavocabulary with your terms using.
Contribute
Issue Tracker: https://github.com/collective/collective.contactformprotection/issues
Source Code/Documentation: https://github.com/collective/collective.contactformprotection
License
The project is licensed under the GPLv3.
Contributors
Peter Mathis, peter.mathis@kombinat.at
Changelog
1.0.0 (2024-04-29)
Initial release. [petschki]
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file collective_contactformprotection-1.0.0.tar.gz
.
File metadata
- Download URL: collective_contactformprotection-1.0.0.tar.gz
- Upload date:
- Size: 29.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cc826a1a75b65e33227f807e3de45299170d64d28afd6cb251a92ab226423a70 |
|
MD5 | b423dde59b9d8ab49aa99a11cf112680 |
|
BLAKE2b-256 | 8ec5a449323ef87e501d0cf17bf316303f8487f20fdcfd6db7381ef72976b0eb |
File details
Details for the file collective.contactformprotection-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: collective.contactformprotection-1.0.0-py3-none-any.whl
- Upload date:
- Size: 37.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 54f74433827b5e9eb4a7d34096aa5d2fb7727ea6f5c59e7399cca49f8a938fde |
|
MD5 | f2455dc9bc5912ec5e1625d60c6f65c1 |
|
BLAKE2b-256 | 235b5a198225a3b7a43585356a0328e3ed2f39bf50fe27dea2feb33764ff77ee |