aljosab
Files: Requires logging in with Slack to view/download
Untitled
aljosab

does anyone know if there is an existing addon that let's you disable (from within admin) access to /admin for all non-admins?

aljosab

it doesn't work from config yml nor does replacing class with SilverStripe\Core\Injector\Injector

aljosab

does anyone know how to change protected $resultsLimit = 20; in GridFieldAddExistingAutocompleter

aljosab

https://github.com/silverstripe/silverstripe-framework/issues/8518

Show 1 attachment(s)
mfendeksilverstripe

Affected Version

"silverstripe/recipe-cms": "4.3.x-dev" / 1577d6386b27922b825928811ce9bc0fa108f227

Description

useLegacyFilterHeader option is very appreciated, but unfortunately, a lot of SilverStripe modules do not use Injector so using this option doesn't seem very viable. A global legacy mode option is needed.

I recommend adding a simple static configuration for useLegacyFilterHeader default value. This default value would be used in the constructor.

public function __construct(
    $useLegacy = null,
    callable $updateSearchContext = null,
    callable $updateSearchForm = null
) {
    if ($useLegacy === null) {
        // fetch global default for this value
    }

    $this->useLegacyFilterHeader = $useLegacy;
    $this->updateSearchContextCallback = $updateSearchContext;
    $this->updateSearchFormCallback = $updateSearchForm;
}

Note that this option is very much needed because the new rendering mode of this component renders different scaffolded fields.

Hide attachment content

 

[2019-03-22 08:19:28] manifestcache-log.WARNING: Failed to save values {"keys":["__CACHE__"],"exception":null} []