Skip to content

[5.x] Add not_in parameter to Assets tag #11820

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

Merged
merged 8 commits into from
May 28, 2025

Conversation

nopticon
Copy link
Contributor

@nopticon nopticon commented May 26, 2025

Add "not_in" parameter to assets tag to filter by using a regular expression, and will be matched against the file path.

For example: not_in="(.*?)logo"

{{ assets container="images" not_in="(.*?)logo" }}

This is similar to "not_in" at https://statamic.dev/tags/get_files

@duncanmcclean duncanmcclean changed the title [5.x] Add filterNotIn to Assets tag [5.x] Add not_in parameter to Assets tag May 28, 2025
Copy link
Member

@duncanmcclean duncanmcclean left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@duncanmcclean duncanmcclean merged commit 1a3def4 into statamic:5.x May 28, 2025
24 checks passed
@nopticon nopticon deleted the not-in-for-assets-tag branch June 4, 2025 19:37
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