View more context

 

Dzung

can we add elementals to a dataobject?

Jason Hale
Jason Hale in #ss4 2019-08-22 21:59:36 (edited) (deleted)

hi everyone! so today's problem, similar issue as this https://github.com/silverstripe/silverstripe-framework/issues/8228 but only my IIS prod setup. Having nothing but issues getting this running on IIS

Show 1 attachment(s)
GitHub  
tinyMCE WYSIWYG editor not showing, JS error · Issue #8228 · silverstripe/silverstripe-framework

Silverstripe version 4.1.0 Basically just installed SS 4.1 on my local server, everything works fine but the WYSIYWG editor is not showing, and there are a load of errors in the console which I hav...

Hide attachment content
nicolaas

what is the best way to remove a value from a yml configuration when the value is added to an array in a vendor module (in this case an authenticator we do not want).

thats4shaw

I had to do something like that recently and it ended up looking like this. This was based off an example @null supplied me.

  1. Config::modify()->merge(Authenticator::class, 'authenticators', [MemberAuthenticator::class]);
  2.  
  3. Config::modify()->merge(Injector::class, Security::class, [
  4. 'properties' => [
  5. 'Authenticators' => [
  6. 'default' => '%$' . MemberAuthenticator::class,
  7. ]
  8. ]
  9. ]);
null

I can't take credit for that one, @kinglozzer started it 😄

🙌 (1)
nicolaas

@thats4shaw ... THANK YOU! It comes down to the clumsiness of the config layer - this should really be fixed I reckon!

thats4shaw

Not sure if you use https://github.com/lekoala/silverstripe-debugbar but I found that caused me some pain with the example above.

Show 1 attachment(s)
GitHub  
lekoala/silverstripe-debugbar

SilverStripe DebugBar module. Contribute to lekoala/silverstripe-debugbar development by creating an account on GitHub.

Hide attachment content