10-28-2016 04:51 AM
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
10-28-2016 05:29 AM
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.
10-28-2016 05:50 AM
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
}
}
10-28-2016 05:54 AM
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.
10-28-2016 05:57 AM
how can i provide pull request ?
10-28-2016 06:01 AM
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.
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.