ssossossosso

Forums

Covering OroCRM topics, including community updates and company announcements.  Subscribe

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

  • Creator
    Topic
  • #7578

    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
  • #7626

    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)

You must be logged in to reply to this topic.