Hi,
I'm starting to take a look how I can get a custom view on my entity detail template.
I'm referring to the docs but not sure where I may be going wrong?
I have the following inside my clientDef:
I have created client/src/views/test/test-panel.js which includes:
And I have my tpl file located at client/res/templates/test/test-panel.tpl - which currently only has text inside a div.
I have cleared cache and rebuilt but I get the following error when viewing my detail template:
Content-Security-Policy: The page's settings blocked the loading of a resource at inline ("script-src").
Uncaught (in promise) Error: Could not fetch asset 'client/custom/src/views/test/test-panel.js?r=1707169764'.
I'm starting to take a look how I can get a custom view on my entity detail template.
I'm referring to the docs but not sure where I may be going wrong?
I have the following inside my clientDef:
HTML Code:
{
"controller": "controllers/record",
"boolFilterList": [
"onlyMy"
],
"color": "#ffffff",
"iconClass": "far fa-money-bill-alt",
"sidePanels": {
"detail": [
{
"name": "testPanel",
"label": "TestPanel",
"view": "custom:views/test/test-panel",
"aclScope": "TestPanel"
}
]
}
}
HTML Code:
define('custom:views/test/test-panel', ['view'], function (View) {
return View.extend({
name: 'test-panel',
template: 'test/test-panel',
});
});
I have cleared cache and rebuilt but I get the following error when viewing my detail template:
Content-Security-Policy: The page's settings blocked the loading of a resource at inline ("script-src").
Uncaught (in promise) Error: Could not fetch asset 'client/custom/src/views/test/test-panel.js?r=1707169764'.

Comment