-
Notifications
You must be signed in to change notification settings - Fork 15
Pico CMS plugin
p01contact, named Pico Contact, is natively a plugin for Pico CMS.
Download or clone the repository, then place the p01-contact/
directory in plugins/
, and rename it PicoContact
.
Just write tags in your pages according to the syntax.
---
Title: My contact page
Description: Contact me
---
This is a default contact form :
(% contact %)
Simple.
The contact
Twig function creates contact forms. Without parameters, it will output a default form as defined in the settings. Parameters can be added to create form-specific structures (see syntax) and localization.
{{ contact() }} output the default form
{{ contact('parameters') }} custom parameters
{{ contact('fr', 'parameters') }} custom parameters and form-specific language
{{ contact('fr', null) }} default form with form-specific language
A functional configuration panel to manage the plugin settings can be shown with the (% contact_admin_config %)
tag and contact_admin
Twig function.
(% contact_admin_config %) in pages
{{ contact_admin('config') }} in themes
This panel shouldn't be accessible in production by visitors or not trusted users. You can restrict this view to logged administrators by using the Pico Users Plugin.
If the Debug option is enabled in the plugin settings, the following tag and twig function will output a debug report.
(% contact_admin_debug %) in pages
{{ contact_admin('debug') }} in themes
This panel shouldn't be accessible in production by visitors or not trusted users. You can restrict this view to logged administrators by using the Pico Users Plugin.