This site has been archived. To learn more about our current products Ibexa Content, Ibexa Experience, Ibexa Commerce head over to the Ibexa Developer Portal

eZ Community » Forums » eZ Publish 5 Platform » Customize error templates
expandshrink

Customize error templates

Customize error templates

Tuesday 24 September 2013 10:44:59 am - 1 reply

Hi!

When I test my site in prod mode, if an error happens, I get a white page with the message "TwigBundle:Exception:error500.html.twig".

Is it possible to override this template (to fit my site template, so the user is not lost) and how?

I already tried the Symfony way : creating a custom template in MyBundle/Resources/TwigBundle/views/Exception/error500.html.twig, but it doesn't seem to work.

Thanks happy.gif Emoticon

Tuesday 24 September 2013 11:25:57 am

I found my error.

I had to put the custom template in ezpublish/Resources/TwigBundle/views/Exception/ and not in MyBundle/Resources/...

expandshrink

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from