Edit default view

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • f4k3
    Junior Member
    • Sep 2020
    • 14

    Edit default view

    Hi there,

    i want to edit the default view of the entity "Account". Means when i click on a record and i get the details, this is the part i want to edit. I just want to add a few changes but how to do so?

    I did the following:

    custom/Espo/Custom/Resources/metadata/clientDefs/Account.json

    {
    "recordViews": {
    "detail": "custom:views/account/record/detail"
    }
    }

    Copied the original "detail.tpl" from /client/res/templates/record/detail.tpl to client/custom/res/templates/account/record/detail.tpl

    This is not working, the records to not load anymore at all.

    Any help is appreciated.

    Thanks
  • Firyo
    Senior Member
    • Jun 2022
    • 137

    #2
    Hi,

    You need to create a JS view that will display your .tpl file

    Ref : https://docs.espocrm.com/development/custom-views/

    Regards.

    Comment

    • yuri
      Member
      • Mar 2014
      • 8798

      #3
      You also consider to add a handler https://docs.espocrm.com/development...etup-handlers/ and modify the DOM dynamically.
      If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

      Comment

      • f4k3
        Junior Member
        • Sep 2020
        • 14

        #4
        Thanks to both of you. I like the second version better since i really just want to add minor changes. Could you provide a concrete example based on that https://docs.espocrm.com/development...etup-handlers/

        Would be great, since i cant figure it out exactly.

        Comment

        Working...