Merge pull request #2656 from creative-commoners/pulls/4.8/backport-pull-2651

BUGFIX: Ensure SiteTree is always available in the CMS, along with ancestors
This commit is contained in:
Steve Boyd 2021-05-11 10:35:35 +12:00 committed by GitHub
commit 4b32d96b2c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -8,6 +8,10 @@ SilverStripe\GraphQL\Manager:
admin:
scaffolding:
types:
# Expose this so that Page can appear anywhere in the hierarchy, rather than assuming
# it is a direct descendant of SiteTree.
SilverStripe\CMS\Model\SiteTree:
fields: [ID]
Page:
fields: [ID, LastEdited, AbsoluteLink]
operations: