OroCRM Forums

Covering OroCRM topics, including community updates and company announcements.

Forums Forums OroCRM OroCRM – Programming Questions How to override JS file

This topic contains 1 reply, has 2 voices, and was last updated by  Hryhorii Hrebiniuk 7 years, 9 months ago.

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

  • Creator
  • #24963



    i am trying to overriding some oro js file.

    Can you please help me, i want to try to override bundles/oroemail/js/email/variable/view.js file

    look forward your reply.

Viewing 1 replies (of 1 total)
  • Author
  • #24964

    Hryhorii Hrebiniuk


    It can be done over RequireJS configuration. In your bundle, in requierjs.yml (./Resources/config/requirejs.yml) add map section:

    This configuration says:

    • all modules that require ‘oroemail/js/email/variable/view’ should actually get ‘acmeemail/js/email/variable/view’
    • and only ‘acmeemail/js/email/variable/view’ will get the original ‘oroemail/js/email/variable/view’

    And inside you module you can extend original EmailVariableView:

    Thanks for you question.

Viewing 1 replies (of 1 total)

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

Back to top

You will be redirected to [title]. Would you like to continue?

Yes No

You will be redirected to [title]. Would you like to continue?

Yes No