@tiberiuichim The applyConfig is never called even from a custom component. Need to figure out what went wrong in my config.js settings.
import {
PersonView,
ContactView,
OrganizationView,
SourceView,
OtherName,
RelationshipView,
IdentifierView,
MembershipView,
PostView,
OwnershipView,
ExtraciveConcessionView,
InfrastructureProjectView,
OCDSDocumentView,
ContractingProcessView,
ModificationView,
OCDSReleaseView,
TenderView,
AwardView,
OCDSItemView,
AreaView,
IssueView,
IssueSourceView,
CustomSearchViewBlock,
CustomSearchEditBlock,
} from './components';
// All your imports required for the config here BEFORE this line
import '@plone/volto/config';
export default function applyConfig(config) {
// Add here your project's configuration here by modifying `config` accordingly
(config.blocks.blocksConfig.customsearch = {
id: 'customsearch',
title: 'Custom Search',
icon: 'world',
group: 'common',
view: CustomSearchViewBlock,
edit: CustomSearchEditBlock,
restricted: false,
mostUsed: true,
security: {
addPermission: [],
view: [],
},
}),
(config.views = {
...config.views,
contentTypesViews: {
...config.views.contentTypesViews,
Person: PersonView,
'Contact Detail': ContactView,
Organization: OrganizationView,
Source: SourceView,
'Other Name': OtherName,
Relationship: RelationshipView,
Identifier: IdentifierView,
Membership: MembershipView,
Post: PostView,
'Ownership Control Statement': OwnershipView,
'Extractive Concession': ExtraciveConcessionView,
'Infrastructure Project': InfrastructureProjectView,
'OCDS Document': OCDSDocumentView,
'Contracting Process': ContractingProcessView,
'OCDS Release': OCDSReleaseView,
Tender: TenderView,
Award: AwardView,
'OCDS Item': OCDSItemView,
Area: AreaView,
Issue: IssueView,
'Issue Source': IssueSourceView,
Modification: ModificationView,
},
});
return config;
}