Aaron Cooper

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?

Aaron Cooper

> [Emergency] Uncaught InvalidArgumentException: SiteTree is not a subclass of DataObject

Aaron Cooper
  1. $liveRecords = Versioned::get_by_stage('SiteTree', 'Live');
Aaron Cooper

Any idea how to get a list of all published pages in the sitetree? I have this from SS3:

Aaron Cooper

Sweet. More for future reference. I've just noticed minor inaccuracies in the odd doc before, probably carried over from SS3.

Aaron Cooper

@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

Show 1 attachment(s)
GitHub  
silverstripe/silverstripe-framework

SilverStripe Framework, the MVC framework that powers SilverStripe CMS - silverstripe/silverstripe-framework

Hide attachment content