You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Apache / Nginx / Built-in, version [ version ] < really?
For UX/UI issues
Brave > Chromium <<<< really this doesnt matter here
Reproduction
If you're filing a bug, please describe how to reproduce it. Include as much
relevant information as possible, such as:
Bug summary
template field is expected to filter out partial twig files prefixed with underscores like so:
_demo.twig
this doesn't happen if the partial is located in a subfolder
this probably happens because the parser tests the relative path rather than the individual filename.
I also created a copy of listing.twig renamed to _listing.twig, stored on the same folder lvl. This one is properly filtered. subfolders are ignored.
Specifics
It's a simple issue. doesn't get more specific than this.
Steps to reproduce
have subfolders in theme with twig files prefixed with _. This should already exist as is in bolt.
Expected result
filtered list without _name.twig files
Actual result
poorly filtered list still contains _file.twig if they exist in subfolders
The text was updated successfully, but these errors were encountered:
Thanks for the detailed PR. I think it has to do with the default filter option. You can also override it to something else if you find it more suitable, here's the documentation: https://docs.bolt.cm/4.0/fields/templateselect#options
I would think the glob filter should match the default partials. /^(?!partials)[^_].*\.twig$/ worked for me.
the pattern can be extended to other folders with (?!(folder1|folder2).
Details
Reproduction
If you're filing a bug, please describe how to reproduce it. Include as much
relevant information as possible, such as:
Bug summary
template field is expected to filter out partial twig files prefixed with underscores like so:
_demo.twig
this doesn't happen if the partial is located in a subfolder
this probably happens because the parser tests the relative path rather than the individual filename.
I also created a copy of listing.twig renamed to _listing.twig, stored on the same folder lvl. This one is properly filtered. subfolders are ignored.
Specifics
It's a simple issue. doesn't get more specific than this.
Steps to reproduce
have subfolders in theme with twig files prefixed with _. This should already exist as is in bolt.
Expected result
filtered list without _name.twig files
Actual result
poorly filtered list still contains _file.twig if they exist in subfolders
The text was updated successfully, but these errors were encountered: