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 9 years, 4 months ago.

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

  • Creator
    Topic
  • #24963

    mageyug
    Participant

    Hello,

    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
    Replies
  • #24964

    Hryhorii Hrebiniuk
    Participant

    Hello,

    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