04-07-2020 03:15 AM
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.
04-07-2020 04:21 AM
Hope this helps:
https://contezza.nl/techno-customizing-the-search-results-widget-alfresco-5-0-d/
04-07-2020 06:10 AM
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?
Explore our Alfresco products with the links below. Use labels to filter content by product module.