hi there, I need your help. I would like the name of the corresponding contact to be displayed.
Version 9.1.3
Unfortunately this does not work. what have I done wrong?
thanks in advance
custom/Espo/Custom/Resources/clients/custom-calendar.js
define('custom:calendar-view', ['calendar:views/calendar/calendar'], function (Dep) {
return Dep.extend({
getEventTitle: function (model) {
var title = model.get('name') || '';
var parentName = model.get('parentName') || '';
var parentType = model.get('parentType') || '';
if (parentName) {
var label = this.translateEntityType(parentType);
title += ' | ' + label + ': ' + parentName;
}
return title;
},
translateEntityType: function (type) {
var label = this.getMetadata().get(['entityDefs', type, 'label']);
return label || type;
}
});
});
custom/Espo/Custom/Resources/metadata/clientDefs/Meeting.json
{
"calendarView": "custom:calendar-view"
}
Version 9.1.3
Unfortunately this does not work. what have I done wrong?
thanks in advance
custom/Espo/Custom/Resources/clients/custom-calendar.js
define('custom:calendar-view', ['calendar:views/calendar/calendar'], function (Dep) {
return Dep.extend({
getEventTitle: function (model) {
var title = model.get('name') || '';
var parentName = model.get('parentName') || '';
var parentType = model.get('parentType') || '';
if (parentName) {
var label = this.translateEntityType(parentType);
title += ' | ' + label + ': ' + parentName;
}
return title;
},
translateEntityType: function (type) {
var label = this.getMetadata().get(['entityDefs', type, 'label']);
return label || type;
}
});
});
custom/Espo/Custom/Resources/metadata/clientDefs/Meeting.json
{
"calendarView": "custom:calendar-view"
}
Comment