Nik

But how do I access the stream and/or physical file?

Nik

Hey team, is there a way to modify a file before it's saved to the Uploads folder in SS4? SS3 had a getFullPath method that I could've used but that's been removed in SS4. It's a plain text file

Nik

Hey folks, still looking for any tips on this one 🙂

Nik

Would someone be able to explain how SilverStripe distinguishes between a field and a method when specifying things like summary fields? It works fine, I'm just curious about the under-the-hood implementation. I've had a look through the code, but seems like I'm missing some parts there.

Nik

Would someone be able to explain to me how SilverStripe does it's magic around has_one? I have an ElementalArea that I am trying to map to in a __call magic method, but it seems like method_exists ($this, "ElementalArea") returns false still. It seems like SS is mapping function calls to properties?

Nik

Awesome, will give that a shot. Thanks!

Nik

It extends file, but then instead of using the File class I am using the custom one. Should that not work?

Nik

Hello folks, I have a class that extends the File class on which I am trying to hook onAfterUpload, but without success. Seems like it is just not being called. I am using a normal UploadField with a has_one relation to my custom File class. Any ideas?

Nik
  1. TinyMCEConfig::get("cwp")->setOption("table_class_list", [
  2. [ "title" => 'None', "value" => '' ],
  3. [ "title" => 'Dog', "value" => 'dog' ],
  4. [ "title" => 'Cat', "value" => 'cat' ],
  5. ]);