You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Most subclasses of LeftAndMain deal with more than one record at a time - be it ModelAdmin which handles multiple records in a GridField, or CMSMain which deals with multiple records in a hierarchical structure.
The logic in LeftAndMain which is intended for sections that only edit a single record should be abstracted out into its own abstract class.
A new abstract SingleRecordAdmin class is created, which is a subclass of LeftAndMain
AdminRootController checks for (non-abstract) subclasses of the new class instead of subclasses of LeftAndMain to set up routing rules
Methods, properties, and configuration used only for editing single records are moved from LeftAndMain to the new class
CMSProfileController, SiteConfigLeftAndMain, and any other controllers in supported modules which only edit a single record are made subclasses of this new class
Functionality that's reimplemented in CMSProfileController, SiteConfigLeftAndMain, etc are made generic and are implemented in the new class directly
The text was updated successfully, but these errors were encountered:
Most subclasses of
LeftAndMain
deal with more than one record at a time - be itModelAdmin
which handles multiple records in aGridField
, orCMSMain
which deals with multiple records in a hierarchical structure.The logic in
LeftAndMain
which is intended for sections that only edit a single record should be abstracted out into its own abstract class.Related
Notes
Acceptance criteria
SingleRecordAdmin
class is created, which is a subclass ofLeftAndMain
AdminRootController
checks for (non-abstract) subclasses of the new class instead of subclasses ofLeftAndMain
to set up routing rulesLeftAndMain
to the new classCMSProfileController
,SiteConfigLeftAndMain
, and any other controllers in supported modules which only edit a single record are made subclasses of this new classCMSProfileController
,SiteConfigLeftAndMain
, etc are made generic and are implemented in the new class directlyThe text was updated successfully, but these errors were encountered: