Skip to content
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

Override custom breadcrumbtrail.html.twig template #4

Closed
hsz opened this issue Jan 24, 2013 · 9 comments
Closed

Override custom breadcrumbtrail.html.twig template #4

hsz opened this issue Jan 24, 2013 · 9 comments

Comments

@hsz
Copy link
Contributor

hsz commented Jan 24, 2013

Is it possible to override custom APYBreadcrumbTrailBundle::breadcrumbtrail.html.twig template ?

@Abhoryo
Copy link
Member

Abhoryo commented Jan 24, 2013

Of course.

@hsz
Copy link
Contributor Author

hsz commented Jan 24, 2013

Can you explain how can I achieve it ?

@Abhoryo
Copy link
Member

Abhoryo commented Jan 24, 2013

For now you can add your template in app/Resources/APYBreadcrumbTrailBundle/views/breadcrumbtrail.html.twig.
This will override the whole file.

But if you want, I can add a new parameter to configure this template in the config.yml file.

@hsz
Copy link
Contributor Author

hsz commented Jan 24, 2013

That's what I'm talking about.it would be great to change it from outside of your bundle and keep it unchanged.

@hsz hsz closed this as completed Jan 24, 2013
@hsz hsz reopened this Jan 24, 2013
@Abhoryo
Copy link
Member

Abhoryo commented Jan 24, 2013

app/Resources/APYBreadcrumbTrailBundle/views/breadcrumbtrail.html.twig file is outside the bundle.

@hsz
Copy link
Contributor Author

hsz commented Jan 24, 2013

Ok, but the best case is to set custom template in config.yml file as you mentioned.

@Abhoryo
Copy link
Member

Abhoryo commented Jan 24, 2013

yeah, I'll do that tonight.

@Abhoryo
Copy link
Member

Abhoryo commented Jan 24, 2013

@hsz, I've add the feature, you can download it and clear your cache.

@hsz
Copy link
Contributor Author

hsz commented Jan 25, 2013

That's the spirit. :) Thank you very much, it works like a charm !

@hsz hsz closed this as completed Jan 25, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants