From d74650bacfe0add085559f2f5927d6f4f1be4f0f Mon Sep 17 00:00:00 2001 From: Florian Thoma Date: Mon, 5 Feb 2024 15:31:29 +1100 Subject: [PATCH] add config to make module work in siteconfig --- _config/hasoneedit.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/_config/hasoneedit.yml b/_config/hasoneedit.yml index 12a0b03..5357ed2 100644 --- a/_config/hasoneedit.yml +++ b/_config/hasoneedit.yml @@ -11,3 +11,13 @@ SilverStripe\Forms\GridField\GridFieldDetailForm_ItemRequest: SilverStripe\ORM\DataObject: extensions: - SGN\HasOneEdit\DataObjectExtension + +--- +Name: hasoneedit-siteconfig +After: '#coreextensions' +Only: + moduleexists: 'silverstripe/siteconfig' +--- +SilverStripe\SiteConfig\SiteConfigLeftAndMain: + extensions: + - SGN\HasOneEdit\UpdateFormExtension