Hello, I created extension which creates new entity. At application/Espo/Modules/Counter/Resources/metadata/entityDefs/Counter.json I have these fields:
In application/Espo/Modules/Counter/Resources/layouts/Counter/detail.json I applied a layout like this:
In application/Espo/Modules/Counter/Resources/module.json I have an order like this:
when I install my extension layout does not apply and looks like in screenshot. So can someone explain why layout does not respond when it is through "Module" namespace?
Code:
{ "fields": { "name": { "type": "varchar", "required": true, "trim": true }, "size": { "notNull": false, "type": "float", "readOnly": true, "isCustom": true }, "diskSize": { "notNull": false, "type": "float", "readOnly": true, "isCustom": true }, "numberOfUsers": { "type": "int", "readOnly": true, "isCustom": true }, "numberOfRecords": { "type": "int", "readOnly": true, "isCustom": true } } }
Code:
[ { "rows": [ [{"name": "name"},{"name": "size"},{"name": "diskSize"}], [{"name": "numberOfRecords"},{"name": "numberOfUsers"} ] ], "label": "Overview" } ]
Code:
{ "order": 15 }
Comment