Another question on Fluent. Just a setup one:
Got two locales. en_NZ and es_MX. en_NZ is the default. Do people normally add the main domain of the site to the domains section, then add it as the domain for their default locale?
We don't really want http://domain.co.nz/en_NZ/home for the default locale visiting for the first time, but we do want http://domain.co.nz/es_MX/home if someone switches to Spanish. So am I right is saying we add http://domain.co.nz as the domain for en_NZ and leave the domain for es_MX empty?
Always gets me that one
> [Emergency] Uncaught InvalidArgumentException: SiteTree is not a subclass of DataObject
But that returns:
- $liveRecords = Versioned::get_by_stage('SiteTree', 'Live');
Any idea how to get a list of all published pages in the sitetree? I have this from SS3:
Sweet. More for future reference. I've just noticed minor inaccuracies in the odd doc before, probably carried over from SS3.
@unclecheese I've never contributed to docs before. Am I right that the any PRs are done to the markup files on https://github.com/silverstripe/silverstripe-framework/tree/master/docs
Where do you want feedback @unclecheese? Here?