Merge pull request #2651 from unclecheese/pulls/4/beta-blocker

BUGFIX: Ensure SiteTree and ancestors always available in the CMS
This commit is contained in:
Steve Boyd 2021-05-10 13:05:22 +12:00 committed by GitHub
commit 6fb89ae384
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: