Skip to content

Webspace Validation shows "Unable to find template ..." #30

@brachycera

Description

@brachycera
Q A
Bug? Yes?!
New Feature? no
Bundle Version 3.0
Sulu Version 2.4.3.
Browser Version Browser name and version

Actual Behavior

Create a Theme with the folder structure

-- config
--- templates
---- pages
----- foo.xml

-- templates
--- pages
---- foo.twig.html

-- themes
--- foo_theme
--- theme.json
---- pages
------ foo.twig.html

Expected Behavior

The Webspace validation shows no errors:

php bin/adminconsole sulu:content:validate:webspaces

The SylusTheme list command shows the correct theme "foo_theme":

php bin/adminconsole sylius:theme:list

Steps to Reproduce

Now remove the foo template from templates/pages/foo.twig.html

The Website works without errors and uses the expected template file themes/foo_theme/pages/foo.twig.html.

But the Webspace validation now shows an error:

Page Templates:
    page: foo -> failed: Unable to find templates "pages/foo.html.twig".

Is this the expected behavior and must I keep both templates templates/pages/foo.twig.html and themes/foo_theme/pages/foo.twig.html in place even when I use the SuluTheme package?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions