dorsetdigital

And is the destinations route defined in yml or is it a page in the SiteTree?

CptPillow

yes I have all 3 of em

  1. function AbsoluteLink() {
  2. return Director::absoluteURL($this->Link());
  3. }
  4.  
  5. function Link() {
  6. return 'destinations/'. $this->ID;
  7. }
  8. public function canView($member = null, $context = [])
  9. {
  10. return true;
  11. }
dorsetdigital

So, you've got all the required methods in the dataobject? canView() Link() AbsoluteLink()

CptPillow

btw is this still right for ss4?

  1. ---
  2. Name: customgooglesitemaps
  3. After: googlesitemaps
  4. ---
dorsetdigital

Hmm, might be worth changing it to \Region::class in that method