Skip to content

Refactor batch actions in CMSMain/HierarchyModelAdmin #2950

@GuySartorelli

Description

@GuySartorelli

Batch actions at best only work for versioned records, but possibly only work for SiteTree specifically.

These should be updated to only show the actions that can be performed on the given model.

Related

Notes

Acceptance Criteria

  • All batch actions that are for versioning actions work for all models with the Versioned extension applied
  • Batch actions are only shown for models they can apply to
    • Note that since custom batch actions can be added, we'll need an API to allow developers to indicate what criteria must be met
  • If there are no batch actions applicable for a model class, the option isn't displayed at all.

Metadata

Metadata

Assignees

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions