-
Notifications
You must be signed in to change notification settings - Fork 76
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Theme templates for core bundle are not being found #124
Comments
If you wanna override |
Oleg: No, I want to override my own templates located in src/Core/CoreBundle/Resources/views with different themes (default, plain etc.). None of the ways proposed in the docs here works for me. Thanks! EDIT: For the record, I call this template this way: |
Then probably you need cascading, you need to specify paths where https://github.com/liip/LiipThemeBundle#change-theme-cascading-order |
Oleg: Thank you very much for your time, but I have found a different way to make it work. Calling Thank you anyway for this great bundle, keep up the awesome work! Vojta |
Hello!
I have tried everything already, but I can't seem to get this bundle to work properly. I have this config:
My application core parts are in
src\Core\CoreBundle
. I also have a BannerBundle in vendor directory, at for this bundle the themes work just as expected...I am trying to override my footer template:
src\Core\CoreBundle\Resources\views\Footer\footer.html.twig
. I tried creating a new template in all 3 ways described in documentation:Override themes directory:
app/Resources/themes/Default/CoreBundle/Footer/footer.html.twig
Override view directory:
app/Resources/CoreBundle/views/Footer/footer.html.twig
Bundle theme directory:
src/Core/CoreBundle/Resources/themes/Default/Footer/footer.html.twig
...but only the second one works, which is natural Symfony behavior and does not let me create any different themes. For the BannerBundle all these 3 ways override my default template in correct order.
Am I doing something wrong? Or does the theme bundle have problems with the structure of CoreBundle? In docs you say
src\BundleName\Resources
directly, but I have Core directory between this... I also tried adding the CoreBundle folder inside Core folder in the themes structure, but that doesn't help either.Thank you in advance!
The text was updated successfully, but these errors were encountered: