andante

otherwise setting the locale might change the date format site-wide? not sure

andante

replacing placeholder text tends to be a lang file - en.yml or whatever, assuming the string is translatable

guci0

I love this placeholder 🙂 "Example: 10/31/2019" how to change date format – for whole SilverStripe project? 4.4.4 is now possible – still have problem with this – at at beginning 😉

Tamara

Hi all, quick question. I've got a Form in a separate file, CreateAccountForm, but whenever I submit the form and an error occurs (e.g. the validation failed), the page redirects, but without any of the previously data filled in. Does anyone know how to fix this?

Tamara

Fixed this by adding

  1. $form->setSessionData($data);
to my form handler (when a custom error occurs)

Nemanja Karadzic

how can one add custom headers for files in assets directory?

MichalKleiner

which surprisingly isn’t mentioned/findable in the developer docs at all

MichalKleiner

it might be after custom code for onBeforeDelete and onBeforeWrite, might be before any custom code for onAfterWrite

taoceanz

Oh, was going to say as a random aside Michal, whether it's right or not, the dev docs show to add the parent call after our code: https://docs.silverstripe.org/en/4/developer_guides/model/extending_dataobjects/#onbeforewrite