simialbi / yii2-elfinder

This extension integrates the jQuery elFinder into yii2 framework
MIT License
7 stars 5 forks source link

maxTargets #2

Closed praad closed 5 years ago

praad commented 6 years ago

Is it possible to override maxTargets by modul config array? 'modules' => [ 'elfinder' => [ 'class' => 'simialbi\yii2\elfinder\Module', 'connectionSets' => [ 'default' => [ // like elfinder roots [ 'class' => 'simialbi\yii2\elfinder\ElFinderConfigurationLocalFileSystem', 'path' => '...', 'URL' => '.., //'maxTargets' => 1, // NOT WORKING HERE 'attributes' => [

simialbi commented 5 years ago

Should be fixed with newset commit 9445996. I'm gonna test it an will publish a stable release.

simialbi commented 5 years ago

Fixed with 1.6.0 release

Use it like this:

[
    'modules' => [
        'elfinder' => [
            'class' => 'simialbi\yii2\elfinder\Module',
            'options' => [
                'default' => [
                    'class' => 'simialbi\yii2\elfinder\ElFinderOptions',
                    'maxTargets' => 1500 // whatever you want to set here
                ]
            ],
            'connectionSets' => [
                'default' => [...]
            ]
        ]
    ]
]