example exports can hidden
This commit is contained in:
parent
9185c12468
commit
13f8049394
@ -16,6 +16,7 @@ declare(strict_types=1);
|
|||||||
namespace D3\DataWizard\Application\Model;
|
namespace D3\DataWizard\Application\Model;
|
||||||
|
|
||||||
use D3\DataWizard\Application\Model\Exports\InactiveCategories;
|
use D3\DataWizard\Application\Model\Exports\InactiveCategories;
|
||||||
|
use OxidEsales\Eshop\Core\Registry;
|
||||||
|
|
||||||
class Configuration
|
class Configuration
|
||||||
{
|
{
|
||||||
@ -34,7 +35,9 @@ class Configuration
|
|||||||
|
|
||||||
public function configure()
|
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));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -26,6 +26,7 @@ $aLang = array(
|
|||||||
|
|
||||||
'SHOP_MODULE_GROUP_d3datawizard_general' => 'Grundeinstellungen',
|
'SHOP_MODULE_GROUP_d3datawizard_general' => 'Grundeinstellungen',
|
||||||
'SHOP_MODULE_d3datawizard_debug' => 'zeigt Abfragen anstatt diese auszuführen',
|
'SHOP_MODULE_d3datawizard_debug' => 'zeigt Abfragen anstatt diese auszuführen',
|
||||||
|
'SHOP_MODULE_d3datawizard_hideexamples' => 'Beispielexporte ausblenden',
|
||||||
|
|
||||||
'D3_DATAWIZARD_GROUP_ARTICLES' => 'Artikel',
|
'D3_DATAWIZARD_GROUP_ARTICLES' => 'Artikel',
|
||||||
'D3_DATAWIZARD_GROUP_CATEGORIES' => 'Kategorien',
|
'D3_DATAWIZARD_GROUP_CATEGORIES' => 'Kategorien',
|
||||||
|
@ -51,6 +51,12 @@ $aModule = [
|
|||||||
'type' => 'bool',
|
'type' => 'bool',
|
||||||
'value' => false
|
'value' => false
|
||||||
],
|
],
|
||||||
|
[
|
||||||
|
'group' => $sModuleId.'_general',
|
||||||
|
'name' => $sModuleId.'_hideexamples',
|
||||||
|
'type' => 'bool',
|
||||||
|
'value' => false
|
||||||
|
],
|
||||||
],
|
],
|
||||||
'blocks' => []
|
'blocks' => []
|
||||||
];
|
];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user