Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Combine ModelAdmin and HierarchyModelAdmin #1766

Open
GuySartorelli opened this issue May 30, 2024 · 0 comments
Open

Combine ModelAdmin and HierarchyModelAdmin #1766

GuySartorelli opened this issue May 30, 2024 · 0 comments

Comments

@GuySartorelli
Copy link
Member

GuySartorelli commented May 30, 2024

After silverstripe/silverstripe-cms#2951 is done, we'll be able to manage any arbitrary hierarchical model class in a tree structure - but each model class must have its own admin section.

There are cases, such as with silverstripe/taxonomy, where related classes should be managed in different ways.
In the case of siverstripe/taxonomy, the TaxonomyTerm class should be managed as a tree, but TaxonomyType should be managed in a gridfield. But they should be in a shared admin section.

Related

Acceptance criteria

  • Subclasses of ModelAdmin can declare that a given tab or tabs should be managed as a tree
  • ModelAdmin subclasses can have different models in different tabs, some as trees and some as gridfields
  • The TaxonomyTerm class is managed as a tree view
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants