Answer the question
In order to leave comments, you need to log in
How to set default parameters for the plugin in modExtra in _build/elements/plugins.php?
In order to study modExtra, I am writing a feedback module and encountered the following problem: when specifying the default parameters for the plugin in the _build/elements/plugins.php file (which processes the AJAX request when submitting the form):
return [
'Feedback' => [
'file' => 'feedback',
'description' => '',
'events' => [
'OnWebPagePrerender' => [],
],
'properties' => [
'fields' => [
'type' => 'textfield',
'value' => 'author,phone,email,comment',
],
],
],
];
for some reason, after installing the package, instead of the name of the parameter, the default value is null, the value is displayed correctly. I did it by analogy with the _build/elements/snippets.php file. I rummaged through the sources of all packages based on modExtra known to me, but I did not find anything like it in any of them. Apparently the name of the default parameter is indicated differently from the snippets, but how? Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question