Announcement

Collapse
No announcement yet.

Custom view file path

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

  • Custom view file path

    How should I set the file path?

    Code:
    Espo.define('custom:modules/crm/views/lead/modals/create', 'views/modal', function (Dep) {
    
        return Dep.extend({
    
            className: 'create-lead',
    
            template: 'custom:modules/crm/lead/modals/create',
    Last edited by codeboy; 07-18-2018, 10:51 AM.

  • #2

    'custom:' in view is read from file client/custom/src + the rest part of the name so 'custom:modules/crm/views/lead/modals/create' in view is read from file client/custom/src/modules/crm/views/lead/modals/create.js
    'custom:modules/crm/lead/modals/create' in template is read from client/custom/res/templates/modules/crm/views/lead/modals/create.js https://www.espocrm.com/documentatio.../custom-views/

    Comment

    Working...
    X