cancel
Showing results for 
Search instead for 
Did you mean: 

Faceted Search Results Page - How to include Custom actions in the 'Actions' menu for a row

rmahajan
Champ in-the-making
Champ in-the-making
Hello,

In the faceted search results page when you click on the “Actions” menu for a row, it asynchronously gets the list of allowed actions. It looks like there is a filter defined in AlfSearchResult.js that restricts the allowed actions to actions currently supported by the Aikau action service.

We would like to include custom actions in this list of allowed actions. What is the recommended approach to include custom actions under the "Actions" menu for each row in the faceted search result list?

I have gone through the faceted-search.get.js, AlfSearchResult.js, Action.js, _ActionsMixin.js, XhrActions.js, _XhrActionsMixin.js and ActionService.js files but it is not clear to me what's the best way to include custom actions under the "Actions" menu. Do we need to override some of these standard files?

Our custom actions work on document-details and documentlibrary pages but they are not included under the Actions menu in the faceted search results page.

Thanks for your help.

Raju
10 REPLIES 10

ddraper
World-Class Innovator
World-Class Innovator

The reason why the "Edit Properties" action is not available out of the box in faceted search is because the search page is implemented by Aikau and the edit properties (as found in the Document Library) is implemented using the old YUI2 components. We have an epic for porting all the Document Library actions to Aikau (see [AKU-194] Document Library Actions - Alfresco JIRA ) but have not completed it yet (and actually aren't actively working on it at the moment).

The other reason why Edit Properties in particular wasn't implemented was because it relies upon the Share Forms Runtime - and this is not supported out-of-the-box for Aikau. I have however been doing some work to create a mapping between the Share forms runtime and Aikau (see https://community.alfresco.com/community/ecm/blog/2016/07/08/aikau-1076-form-runtime-support  and related blog posts).

There has been no drive from the product management team to integrate this fully into the core product yet though. However, you should be able to make use of what is available through Aikau to implement your requirements for Edit Properties.