Hi Björn,

ah, thanks, you're right - if I delete the entries in the oxconfig table and activate the module again, the default values are used! Sweet :)

Cheers,
Stefan
Am 21.08.2012 12:57, schrieb Björn Lange:
Hi Stefan,

2012/8/21 Stefan Moises <[email protected] <mailto:[email protected]>>

    I need to have settings of type "arr" and "aarr", like this:
       'settings' => array(
    *        array('group' => 'SMXFF', 'name' =>
    'aFactfinderChannels', 'type' => 'aarr',  'value' => array('1' =>
    'de')),
            array('group' => 'SMXFF', 'name' =>
    'factFinderAlwaysOpenCats', 'type' => 'arr',  'value' =>
    array('Preis','Hersteller')), *
            array('group' => 'SMXFF', 'name' =>
    'maxFactFinderCampaignProducts', 'type' => 'str', 'value' => '6'),
            array('group' => 'SMXFF', 'name' =>
    'factFinderCatSepChar', 'type' => 'str',  'value' => '/'),
            array('group' => 'SMXFF', 'name' =>
    'factFinderCatBaseFilter', 'type' => 'str',  'value' =>
    'filterKategoriePfadROOT'),
        )

    This works, the settings vars are there and textareas are created:


When i enable the module the first time, the logic works just fine. Default values are only used for the first activation:

oxModule::_addModuleSettings (4.6.2)

$sValue = is_null($oConfig->getConfigParam($sName))?$aValue["value"]:$oConfig->getConfigParam($sName);
Regards,
Björn

--

*_________________________________
WBL Konzept, Beerden & Lange GbR*
*Björn Lange*
Geschäftsführender Gesellschafter

Luxemburger Straße 266
50937 Köln

Bilker Straße 34
40213 Düsseldorf

Telefon: 0211 942 120 30*|* Fax: 0211 192 120 32
www.wbl-konzept.de <http://www.wbl-konzept.de/> *|* www.facebook.com/wbl.konzept <http://www.facebook.com/wbl.konzept>*|* [email protected] <mailto:[email protected]>




_______________________________________________
dev-general mailing list
[email protected]
http://dir.gmane.org/gmane.comp.php.oxid.general

--
Mit den besten Grüßen aus Nürnberg,
Stefan Moises

*******************************************
Stefan Moises
Senior Softwareentwickler
Leiter Modulentwicklung

shoptimax GmbH
Guntherstraße 45 a
90461 Nürnberg
Amtsgericht Nürnberg HRB 21703
GF Friedrich Schreieck

Tel.: 0911/25566-0
Fax:  0911/25566-29
[email protected]
http://www.shoptimax.de
*******************************************

_______________________________________________
dev-general mailing list
[email protected]
http://dir.gmane.org/gmane.comp.php.oxid.general

Reply via email to