As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
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
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
}
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 ?