Announcement

Collapse
No announcement yet.

Overwrite master.js

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Overwrite master.js

    Hi,

    I'm trying to overwrite client\src\view\site\master.js. I find with keyword "Site.Master" and i see it in two files: pre-load.json and espo.min.js and it's only working if i modify espo.min.js.
    So how can i overwrite master.js without edit espo.min.js?

    ​Thank you!

  • #2
    Hi

    If you need it only for a particular scope (entity type) you can create custom frontend controller (inherited from Record controller) and there override place where master.js is called.

    Comment


    • #3
      Hi yurikuzn,

      I don't need it for any particular scope. I need to custom notifications feature. To do this i have edited badge.js (client/src/views/notifications/badge.js) and i want to move it to custom. So i want overwrite master.js

      How can i do this? Also can you please explain more how can i define to override place where master.js is called in frontend controller, example for Account entity?

      Thank you!

      Comment


      • #4
        You should look at code. I don't remember. I will either need to look into code to answer your question.

        Comment


        • #5
          Yes, thanks you

          Comment

          Working...
          X