But how do I access the stream and/or physical file?
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
Hey folks, still looking for any tips on this one 🙂
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.
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?
you would want to use
hasMethod as it takes into account methods generated at run time
It extends file, but then instead of using the File class I am using the custom one. Should that not work?
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?
- TinyMCEConfig::get("cwp")->setOption("table_class_list", [
- [ "title" => 'None', "value" => '' ],
- [ "title" => 'Dog', "value" => 'dog' ],
- [ "title" => 'Cat', "value" => 'cat' ],