Message of the day:
Welcome. Latest release: https://www.silverstripe.org/download Community Forum: https://forum.silverstripe.org Features: https://forum.silverstripe.org/c/feature-ideas Archive: https://slackarchive.silverstripe.org
If you have any SilverStripe related questions, please supply the version of Framework you're using.
Did you flush? 🚽 =
Archive temporarily at https://archive.codingplayground.nl (redirect)
Example is wrapping the Google Analytics in a "isLive"
I often found, that using isDev or isLive in templates is pretty useful, so a PR wouldn't be a bad idea
I guess I’m using it for stuff that would normally done in php and the Requirements backend.. but we’re not using that
created my own method, might move it into a template provider and/or create a PR
cool, I just wasn’t sure if I missed it somewhere..
So... make your own method, or make a PR to expose these methods to the template
not public/template available though 😞
before I write my own controller method, is there a way how to get site mode (dev/test/live) in templates?
stick with ISO8601