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

Improve handling of nested resources #2364

Open
pablobm opened this issue Apr 20, 2023 · 0 comments
Open

Improve handling of nested resources #2364

pablobm opened this issue Apr 20, 2023 · 0 comments

Comments

@pablobm
Copy link
Collaborator

pablobm commented Apr 20, 2023

A common cause for complaint from Administrate users is that nested collections (typically HasMany fields) are limited in several ways. Issues include the following:

Topics include:

  • List different attributes depending if looking at the resources on their own index page or within a HasMany/HasOne collection
    • For example, if looking at "magazine" which has many "issues", the list of issues should not include a "magazine" column (their BelongsTo) because it's already implied in the page.
  • When overriding views, use the correct one for the dashboard of the association, rather than the parent.
    • For example, "magazine" has many "issues" and we override the "index" template of "issues". This will not be shown in the issues list of the magazine page and instead it will use the "index" template of the magazines.
    • Proper handling of this would also allow showing custom action columns within HasMany listing. For example "up" and "down" actions to reorder lists.
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

1 participant