Download the PHP package catdesign/forms-plugin without Composer
On this page you can find all versions of the php package catdesign/forms-plugin. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download catdesign/forms-plugin
More information about catdesign/forms-plugin
Files in catdesign/forms-plugin
Package forms-plugin
Short Description Easy creation and management of forms for October CMS
License (LGPL-2.1-only or GPL-3.0-or-later)
Informations about the package forms-plugin
CatDesign.Forms Plugin for October CMS
Author: Semen Kuznetsov (CatDesign Group)
Author URL: https://cat-design.ru
In English
About the plugin
Allows you to manage forms on the site. Process forms, sends data in mail templates. Integration with the Send Pulse service.
This plugin is intended for developers. Allows you to simplify the implementation of forms on the site, organize the management of forms for the customer.
The plugin uses an Ajax handler via the standard data-attributes-api. All events are managed in the administrative interface.
The plugin provides basic partials for drawing forms. Standard blanks are quite flexible, but in some cases you will have to write your own based on the example of the basic ones.
Integration of forms with SendPulse is available out of the box. To do this, you need to fill in the SendPulse API settings.
Additional features. Integration of shopaholic orders with SendPulse. Requires the OrdersForShopaholic plugin.
Installing witch composer
composer require catdesign/forms-plugin
Attention! Do not give customers full root access to the system, otherwise they may disrupt the plugin by making incorrect settings. The rights are prepared in the plugin. Create a new user and assign - Manager permission.
Getting forms
First, create a form and the necessary fields. After the form is created, it will be assigned a code. Throw the Forms component to the desired site pages or layout.
There are 2 ways to get a form in total.
1. Get By ID
I do not recommend this method, since when deleting the form you will have to replace the call in the code.
2. Get By code
This method is preferable, because you can always assign a code to the form. (Developer rights are required)
Render of the page (Macros)
Import the macro into the template
Get form
Open form
Render form title
Render all fields
Or Render individual field
Render submit button
Close form
Example of drawing a simple feedback form from 2 fields
Note that macro variables are optional. You can pass null if, for example, you don't need css_classes