Hi, I'm trying to create custom button using this manual https://docs.espocrm.com/development...in-detail-view
Following manual I've created button like this:
but the nginx error.log show me the error according to filepath:
so it's try to open file here /var/www/html/client/custom/src/sales-order-action-handler.js
but the real directories structure looking like this:
/var/www/espocrm/data/espocrm/client/src/sales-order-action-handler.js
so, the question is:
How can I change filepath here: data":{"handler":"custom:sales-order-action-handler"} ? or maybe you know another way to fix it?
ps: adding the raw filepath to data: handler: not working
Following manual I've created button like this:
Code:
"detail": {
"buttons": [
"__APPEND__",
{
"label": "Uhradit",
"name": "uhradit",
"action": "uhradit",
"acl": "edit",
"data":{"handler":"custom:sales-order-action-handler"}
,
"initFunction": "initManageSalesOrderAction"
}
]
}
Code:
[error] 31#31: *2730 open() "/var/www/html/client/custom/src/sales-order-action-handler.js" failed (2: No such file or directory), client: yy.yy.yyy.yy, server: xx.xx.xx.xx, request: "GET /client/custom/src/sales-order-action-handler.js?r=1650526176 HTTP/1.1", host: "xx.xx.xx.xx", referrer: "http://xx.xx.xx.xx/"
but the real directories structure looking like this:
/var/www/espocrm/data/espocrm/client/src/sales-order-action-handler.js
so, the question is:
How can I change filepath here: data":{"handler":"custom:sales-order-action-handler"} ? or maybe you know another way to fix it?
ps: adding the raw filepath to data: handler: not working

Comment