OroCRM Forums

Covering OroCRM topics, including community updates and company announcements.

Forums Forums OroCRM How I override 'OroContactBundle:Contact:view.html.twig' without rewrite code?

This topic contains 2 replies, has 2 voices, and was last updated by  igalayev 6 years, 1 month ago.

Starting from March 1, 2020 the forum has been switched to the read-only mode. Please head to StackOverflow for support.

  • Creator
    Topic
  • #30824

    spyout98
    Participant

    I want to override the default “/contact/view/{id}” twig file, located in “https://github.com/oroinc/crm/blob/2.5.0/src/Oro/Bundle/ContactBundle/Resources/views/Contact/view.html.twig”. For that, I’ve created my custom bundle and It is working. But I would extend this twig file in a more elegant way.

    One possibility to override this twig file is copy and paste all code inside the file above and change what I need. But there is a way to redefine some blocks of it without need to copy and paste all the code from the original file?

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)

The forum ‘OroCRM’ is closed to new topics and replies.

Back to top