BUGFIX: Ensure SiteTree is always available in the CMS, along with ancestors

This commit is contained in:
Aaron Carlino 2021-05-07 16:42:36 +12:00 committed by Maxime Rainville
parent a6a3b3829c
commit 67bfdf0ff1

View File

@ -8,6 +8,10 @@ SilverStripe\GraphQL\Manager:
admin: admin:
scaffolding: scaffolding:
types: 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: Page:
fields: [ID, LastEdited, AbsoluteLink] fields: [ID, LastEdited, AbsoluteLink]
operations: operations: