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
parent a6a3b3829c
commit ed4ff6eadc
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: