I’m trying to add a class for the category of a post in the results returned by full-page-search. I’ve tried modifyClass to both controller/full-page-search and component/search-result-entry, including using the modifyClass bug workaround from here, and I can’t even get a console.log or alert to work. Is there another way to just add a class to fps-result post items? I’m basically looking for the equivalent of decorateCookedElement for full page search.
api.modifyClass('controller:full-page-search', {
pluginId: 'mute-categories-search',
actions: {
newActionHere() {
console.log("test")
}
}
});
const controller = api.container.lookup('controller:full-page-search');