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

Filtering media by collection #447

Open
ArtDepartmentMJ opened this issue Oct 9, 2024 · 0 comments
Open

Filtering media by collection #447

ArtDepartmentMJ opened this issue Oct 9, 2024 · 0 comments

Comments

@ArtDepartmentMJ
Copy link

I know we can hide media collections entirly but is it possible to filter media collection when selecting existing media? At the moment it show all images uplodaed regardless of collection but it would be really handly if you could only show ones from the current collection or an parsed in array of collcetions e.g.

Images::make('Header Image')
    ->enableExistingMedia(['header_image']),

Images::make('Footer Image')
    ->enableExistingMedia(['footer_image']), 

Images::make('Other Image')
    ->enableExistingMedia(['other_image', 'header_image', 'footer_image']), 

Additionally, if the files are the same (which happens after you select existing media), could it only show the first occurance?

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

No branches or pull requests

1 participant