From 67bfdf0ff1de0f4a0cb2f4be85c974c54b292415 Mon Sep 17 00:00:00 2001 From: Aaron Carlino Date: Fri, 7 May 2021 16:42:36 +1200 Subject: [PATCH] BUGFIX: Ensure SiteTree is always available in the CMS, along with ancestors --- _config/graphql-legacy.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/_config/graphql-legacy.yml b/_config/graphql-legacy.yml index 0f69fb4d..7c8ae249 100644 --- a/_config/graphql-legacy.yml +++ b/_config/graphql-legacy.yml @@ -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: