I am trying to add custom action in aikau search result page.
I have read the document and found that using following way we can add custom action.
1)documentAndFolderActions
2)additionalDocumentAndFolderActions
3)
{
name: "alfresco/renderers/Actions",
config: {
mergeActions: true,
customActions: [
{
id: "CUSTOM",
label: "Custom Action",
publishTopic: "CUSTOM_ACTION_TOPIC",
publishPayloadType: "CURRENT_ITEM",
type: "javascript"
},
],
widgetsForActions: []
}
}
Can anyone help me to how to add custom action in aikau search result page.
Hope this helps:
https://contezza.nl/techno-customizing-the-search-results-widget-alfresco-5-0-d/
I have tried below code and it is working.
var searchResultPage = widgetUtils.findObject(model.jsonModel.widgets, "id", "FCTSRCH_SEARCH_RESULT"); if(searchResultPage != null) { searchResultPage.config = { enableContextMenu : false, mergeActions : true, additionalDocumentAndFolderActions : ["example-action"] } } model.jsonModel.widgets.push({ id: "EXAMPLE_LISTENER", name:"search/action" });
From the above link,I have tried to display mimetype and Its working. How can I use that code to add custom action?
Ask for and offer help to other Alfresco Content Services Users and members of the Alfresco team.
Related links:
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.