Download the PHP package terminal42/contao-leads without Composer
On this page you can find all versions of the php package terminal42/contao-leads. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package contao-leads
terminal42/contao-leads
terminal42/contao-leads
is an extension for the Contao CMS.
It allows you to store submissions from the Contao form generator into the database without the need to create tables for each form. Leads can then be viewed in the back end as well as exported into various formats (e.g. CSV or Excel).
If multiple identical forms exist (e.g. in different languages), lead data can be grouped by the main form (e.g. your fallback language). This allows to view and export data as if it was just one form.
Installation
Choose the installation method that matches your workflow!
Installation via Contao Manager
Search for terminal42/contao-leads
in the Contao Manager and add it to your installation. Finally, update the
packages.
Manual installation
Add a composer dependency for this bundle. Therefore, change in the project root and run the following:
Depending on your environment, the command can differ, i.e. starting with php composer.phar …
if you do not have
composer installed globally.
Configuration
Initial configuration can be done in the form generator of Contao. Do not forget to activate the fields you want to save! In the form configuration, you can set a label for the back end menu link of your leads and define the listing of the form data using simple tokens.
To configure exports, first make sure you have at least one form submission. A global operation to configure exports is then available when viewing the lead data.
Permissions
For users that are not admins of the system, permissions need to be set up to access leads. Enable access to the leads back end module and select the forms of which lead data should be available. If the user does not need to configure the form itself, you don't need to give access to the form generator!
You can additionally configure if a user is allowed to edit or delete existing leads.
Simple Tokens
Contao Simple Tokens are used to generate the back end list and as well as for customized exports.
All saved form fields are available by their field name. For example, if you created a text field with name firstname
,
you can output its value in the back end list or the export using the ##firstname##
simple token.
Additionally, the following simple tokens are providing data of the lead itself, rather than the data submitted through the form generator.
- ##_id##
- Database ID of the lead record.
- ##_created##
- Date and time when the lead was saved (when the form was submitted).
- ##_form
- Database ID (and title) of the form that was submitted.
- ##_member##
-
ID of the front end member that was logged in while the form was submitted, or
0
if no member was logged in.
License
This bundle is released under the LGPL 3.0+ license
All versions of contao-leads with dependencies
contao/core-bundle Version ^4.13 || ^5.0
codefog/contao-haste Version ^4.25 || ^5.0
menatwork/contao-multicolumnwizard-bundle Version ^3.6
phpoffice/phpspreadsheet Version ^1.26 || ^2.0
doctrine/dbal Version ^3.0
psr/log Version ^1.0 || ^2.0 || ^3.0
symfony/asset Version ^5.0 || ^6.0 || ^7.0
symfony/config Version ^5.0 || ^6.0 || ^7.0
symfony/dependency-injection Version ^5.0 || ^6.0 || ^7.0
symfony/event-dispatcher-contracts Version ^2.0 || ^3.0
symfony/expression-language Version ^5.0 || ^6.0 || ^7.0
symfony/filesystem Version ^5.0 || ^6.0 || ^7.0
symfony/framework-bundle Version ^5.0 || ^6.0 || ^7.0
symfony/http-foundation Version ^5.0 || ^6.0 || ^7.0
symfony/http-kernel Version ^5.0 || ^6.0 || ^7.0
symfony/routing Version ^5.0 || ^6.0 || ^7.0
symfony/security-core Version ^5.0 || ^6.0 || ^7.0
symfony/translation-contracts Version ^2.0 || ^3.0