Announcement

Collapse
No announcement yet.

Overriding templates

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

  • Overriding templates

    How could I override the default template files? As example I want to change the /templates/modals/image-preview.tpl template. I put the res folder with all the templates into the custom folder, but system still loads the default templates from client/res folder.

  • #2
    Hello
    in custom view you need to define custom template (also starts with custom: )

    Comment


    • #3
      Originally posted by tanya View Post
      Hello
      in custom view you need to define custom template (also starts with custom: )
      Okay, I still have a problem with overriding the modal views. I made an override for entity named "Task" like this:

      client/custom/src/views/task/detail.js

      also I included: "views": {
      "list": "custom:views/task/list",
      "detail": "custom:views/task/detail",
      "edit": "custom:views/task/edit"
      },

      in my Task.json.

      Now, how could I override the client/custom/src/views/modals/image-preview.js file?

      What should I write in my task.json to define this new path for image-preview.js?

      Comment

      Working...
      X