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.
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": "*"
'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)
}
});
SkeekS CMS (Yii2) — quickly, easily and effectively!
skeeks.com | cms.skeeks.com