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

Use Media class to retrieve files in AdminController#taskGetFilesInFolder #842

Merged

Conversation

fredrikekelund
Copy link
Contributor

By using the same class that's used to list media when rendering pages, we can ensure a consistent experience, where the same files are listed in the admin as are available through $page->media()->all(). The goal here was to avoid listing image alternatives, a problem that was brought up in #838. We might want to introduce an option to be able to turn this off, but I also think there's a definite logic to listing the same files that are available in the page template, and nothing more.

…lder

Using the same class that's used to list media when rendering
pages ensures a consistent experience. The goal here was to avoid
listing image alternatives, but retain all the files available
through $page->media()->all()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants