skeeks/cms-module-form2

Form designer for SkeekS CMS

Maintainers

Package info

github.com/skeeks-cms/cms-module-form2

Homepage

Issues

Wiki

Type:yii2-extension

pkg:composer/skeeks/cms-module-form2

Statistics

Installs: 8 058

Dependents: 3

Suggesters: 0

Stars: 0


README

The module provides an opportunity to collect a variety of forms through the admin panel. Manage elemntov order forms, and views. Configure whom to notify.

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist skeeks/cms-module-form2 "*"

or add

"skeeks/cms-module-form2": "*"

Configuration app

'components' =>
[
    'i18n' => [
        'translations' =>
        [
            'skeeks/form2/app' => [
                'class'             => 'yii\i18n\PhpMessageSource',
                'basePath'          => '@skeeks/modules/cms/form2/messages',
                'fileMap' => [
                    'skeeks/form2/app' => 'app.php',
                ],
            ]
        ]
    ],
],
'modules' =>
[
    'form2' => [
        'class'         => '\skeeks\modules\cms\form2\Module',
    ]
]
sx.EventManager.on("ajaxFormSuccessSubmited", function(e, data) {
    //Успешно отправлена любая форма
    //ym(67855000,'reachGoal','any-form');
    
    if (data.form.jForm.data('form_code') == 'register') {
        //Отправлена конкретная форма (регистрация)
        ym(67855000,'reachGoal','register');
    }
    
    
    if (data.form.jForm.data('form_code') == 'test') {
        //Отправлена конкретная форма (с кодом test)
    }
});

Links

skeeks!
SkeekS CMS (Yii2) — quickly, easily and effectively!
skeeks.com | cms.skeeks.com