cancel
Showing results for 
Search instead for 
Did you mean: 

how to disable or invisible action button from search result in alfresco advance search

janaka1984
Star Contributor
Star Contributor

Hi

how can i disable or invisible action button from search result in alfresco advance search?

do i need to override createActionsRenderer function and set as onlyShowOnHover:false ?

Regard

janaka

5 REPLIES 5

ddraper
World-Class Innovator
World-Class Innovator

Firstly - I don't think you mean the "advanced search" page ... this is a completely different page (on which actions aren't present)... you mean the standard search page (sometimes referred to as the faceted or filtered search page) - this distinction is important because the way in which the pages are customized is completely different (one being Aikau the other being Surf/YUI2)...

Having said that, the solution is very similar to that of this other question you've asked (and I've answered)... the difference is that you want to override the createActionsRenderer function in an extension of the AlfSearchResult widget so that it does not create the XhrActions renderer.

Unless you're asking how you can make it always visible ... in which case you want to override the createActionsRenderer but to create an XhrActions widget with the onlyShowOnHover attribute to be false.

Arguably we could make this an attribute of the AlfSearchResult to make this customization much simpler - I'd be very happy for you to provide a pull request on the Aikau project if you'd like to see this change made.

thanks dave.

As i thought , function should override and set false into onlyShowOnHover.

it is better if you can provide customized attribute (onlyShowOnHover : false) with this widget

{

name: "alfresco/search/AlfSearchResult",

                                     config: {

                                                  onlyShowOnHover : false

                                        }

}

ddraper
World-Class Innovator
World-Class Innovator

Yes, except it would be an attribute called "onlyShowActionsOnHover" - this would be passed on to the onlyShowOnHover attribute on the XhrActions widget. If you'd like to see this added then you can raise an issue on the GitHub project and I'll make the change at the earliest possible opportunity... alternatively, you could always provide the update yourself through a pull request.

how can i provide pull request ?

ddraper
World-Class Innovator
World-Class Innovator

The entire Aikau project is hosted separately on GitHub here...  you can clone the repository, make changes to your clone and make a request to pull them into the Aikau repository. Acceptance criteria for pull requests is defined here. Aikau is released weekly, so if you make a pull request that is accepted you should see it in a release very quickly.