To modify the comments API configuration, you need to extend the configuration file noviusos_comments::api.
default: |
|
||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
setups: | Array. The setup id in key, array like default for the value. |
You can modify the default configuration, or add a setup for a specific model or a specific context.
If you want to change configuration for all cases:
<?php
array(
'default' => array(
'use_recaptcha' => true,
),
);
If you want to change configuration only for a specific model:
<?php
array(
'setups' => array(
'My\Namespace\Model_Item' => array(
'use_recaptcha' => true,
),
),
);
If you want to change configuration only for a specific context:
<?php
array(
'setups' => array(
'main::en_GB' => array(
'use_recaptcha' => true,
),
),
);
Note
If you want to activate Recaptcha, you have to install this package in local/packages.