example exports can hidden

Cette révision appartient à :
Daniel Seifert 2021-04-27 23:51:12 +02:00
Parent 9185c12468
révision 13f8049394
Signé par: DanielS
ID de la clé GPG: 6A513E13AEE66170
3 fichiers modifiés avec 11 ajouts et 1 suppressions

Voir le fichier

@ -16,6 +16,7 @@ declare(strict_types=1);
namespace D3\DataWizard\Application\Model;
use D3\DataWizard\Application\Model\Exports\InactiveCategories;
use OxidEsales\Eshop\Core\Registry;
class Configuration
{
@ -34,7 +35,9 @@ class Configuration
public function configure()
{
$this->registerExport(self::GROUP_CATEGORY, oxNew(InactiveCategories::class));
if (false === Registry::getConfig()->getConfigParam('d3datawizard_hideexamples', false)) {
$this->registerExport(self::GROUP_CATEGORY, oxNew(InactiveCategories::class));
}
}
/**

Voir le fichier

@ -26,6 +26,7 @@ $aLang = array(
'SHOP_MODULE_GROUP_d3datawizard_general' => 'Grundeinstellungen',
'SHOP_MODULE_d3datawizard_debug' => 'zeigt Abfragen anstatt diese auszuführen',
'SHOP_MODULE_d3datawizard_hideexamples' => 'Beispielexporte ausblenden',
'D3_DATAWIZARD_GROUP_ARTICLES' => 'Artikel',
'D3_DATAWIZARD_GROUP_CATEGORIES' => 'Kategorien',

Voir le fichier

@ -51,6 +51,12 @@ $aModule = [
'type' => 'bool',
'value' => false
],
[
'group' => $sModuleId.'_general',
'name' => $sModuleId.'_hideexamples',
'type' => 'bool',
'value' => false
],
],
'blocks' => []
];