Skip to content

Using partials in deeply folders structureΒ #6

@damsfx

Description

@damsfx

Blocks plugin no longer allows to use partials in two (or more) depth levels.

πŸ“‚ themes
 β”— πŸ“‚ demo
   β”— πŸ“‚ partials
     ┣ πŸ“‚ site
     ┃ ┣ πŸ“‚ test 
     ┃ ┃ β”— πŸ“œ test.htm    <=== Display this partial throw an error if Winter.blocks is enabled
     ┃ β”— πŸ“œ test.htm      <=== Display this partial works
     β”— πŸ“œ test.htm        <=== Display this partial works

With Winter.Blocks plugin enabled :
An exception has been thrown during the rendering of a template ("The partial 'site/test/test' template cannot be found.").
Running php artisan cache:clear does not solve this issue.

With Winter.Blocks plugin disabled : No errors, all works fine.

This issue appears after commit 9f08478
My test environment :

winter/storm                 dev-develop 65920e8
winter/wn-backend-module     dev-develop 990252f
winter/wn-cms-module         dev-develop 03b80c6
winter/wn-system-module      dev-develop cf0c382
winter/wn-pages-plugin       v2.1.1
winter/wn-blocks-plugin      dev-main c7edec1

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions