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
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?
The text was updated successfully, but these errors were encountered:
@brachycera Thx for creating the issue. The sulu:content:validate:webspaces only knows about the default templates and know nothing about the sylius themes.
The problem here is the sulu:content command lives in the sulu/sulu package and should not know about themes and so fails in this case.
We would then need a requirement of themes in sulu core which we currently wanted to avoid. There was already a PR for it sulu/sulu#5806, which did not get merged because of dependency issue.
The only solution I see would be we add a interface for checking the existing of templates in the sulu core, the core behave like currently. And in SuluThemeBundle we override that service to keep the themes in mind.
Hey @alexander-schranz,
many thanks for you answer! I was already suspecting that sulu/sulu had no knowledge that the SuluThemePackage is installed. My concern was - that I have to keep the template files in sync in two places themes/foo_theme/... and templates/.... But since the error is a false negative I guess I don't have to do that 😉
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:
Is this the expected behavior and must I keep both templates
templates/pages/foo.twig.html
andthemes/foo_theme/pages/foo.twig.html
in place even when I use the SuluTheme package?The text was updated successfully, but these errors were encountered: