I want add custom action in alfresco aikau search page. I have created extension module.
<extension>
<modules>
<module>
<id>Custom Action In Search Result Page</id>
<auto-deploy>true</auto-deploy>
<version>1.0</version>
<customizations>
<customization>
<targetPackageRoot>org.alfresco.share.pages.faceted-search
</targetPackageRoot>
<sourcePackageRoot>com.custom.faceted-search</sourcePackageRoot>
</customization>
</customizations>
</module>
<module>
<id>Tutorial widgets</id>
<version>1.0</version>
<auto-deploy>true</auto-deploy>
<configurations>
<config evaluator="string-compare" condition="WebFramework"
replace="false">
<web-framework>
<dojo-pages>
<packages>
<package name="search" location="js/search" />
</packages>
</dojo-pages>
</web-framework>
</config>
</configurations>
</module>
</modules>
faceted-search.js
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"
});
It is not adding action in search result page individual document.
When you want to display same action in aikau search result page then you have to provide same id which you have given in share-config-custom.xml action.
Ex.example-action
I was providing different Id so it was not displaying.