Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Jan 14, 2026. It is now read-only.
This repository was archived by the owner on Jan 14, 2026. It is now read-only.

template field lists underscore files in subfolders #7922

@ghost

Description

Details

Question Answer
Relevant Bolt Version 5.3.2
Install type Composer install
BC Break yes/no
PHP version 7.3
Web server 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.
127 0 0 1_8000_bolt_edit_10 (1)

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions