Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

override the template in Symfony 4 #92

Open
nbutet opened this issue Apr 25, 2018 · 3 comments
Open

override the template in Symfony 4 #92

nbutet opened this issue Apr 25, 2018 · 3 comments

Comments

@nbutet
Copy link

nbutet commented Apr 25, 2018

Hi,

could you, please, tell me how I can do to override the template microdata.html.twig in Symfony 4 and in which directories. I looked in the symfony's documentation, I made this directories but It don't display my template.
templates/bundles/WhiteOctoberBreadcrumbsBundle/WhiteOctober/microdata.html.twig

Thanks for your help.

@bocharsky-bw
Copy link
Contributor

Hey!

Here's the docs: http://symfony.com/doc/current/templating/overriding.html . According to it, try this path:
templates/bundles/WhiteOctoberBreadcrumbsBundle/microdata.html.twig

P.S. Don't forget to clear the cache just in case ;)

@nbutet
Copy link
Author

nbutet commented Apr 25, 2018

Hi,

thank you for your answer, I tried this path but it doesn't work. I cleared the cache but no result :-(

@isfett
Copy link

isfett commented Apr 28, 2018

You can set it in the config. If your template is under

/templates/_shared/_breadcrumbs.html.twig, add do the yaml:

viewTemplate:       '_shared/_breadcrumbs.html.twig'

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants