Skip to content

[5.x] Prevent some folders from listing in template fieldtype - #10031

Merged
jasonvarga merged 9 commits into
statamic:5.xfrom
peimn:fix/template-list
May 27, 2024
Merged

[5.x] Prevent some folders from listing in template fieldtype#10031
jasonvarga merged 9 commits into
statamic:5.xfrom
peimn:fix/template-list

Conversation

@peimn

@peimn peimn commented May 9, 2024

Copy link
Copy Markdown
Contributor

When incorporating views as a git submodule and setting up a node project, you'll observe that the 'template' field type lists all folders, including 'node_modules,' which is an undesired behavior.

@duncanmcclean duncanmcclean changed the title [5.x] prevent some folders from listing in template FT [5.x] Prevent some folders from listing in template fieldtype May 10, 2024

@jasonvarga jasonvarga left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I noticed some issues even after your changes with unexpected items being shown, like incorrect paths etc.

I've added tests, corrected the issues, and cleaned things up a bit.

Thanks!

@peimn

peimn commented May 24, 2024

Copy link
Copy Markdown
Contributor Author

Thank you! It appears that more testing is required. I will conduct additional tests to ensure everything is in order before pushing the changes.

@jasonvarga
jasonvarga merged commit 46b4d39 into statamic:5.x May 27, 2024
@jasonvarga

Copy link
Copy Markdown
Member

It's okay, we got it. Thanks!

@peimn

peimn commented May 27, 2024

Copy link
Copy Markdown
Contributor Author

Thank you!

@peimn
peimn deleted the fix/template-list branch May 27, 2024 16:31
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