cancel
Showing results for 
Search instead for 
Did you mean: 

search result customization

alfdeveloper1
Champ in-the-making
Champ in-the-making
Hi Guys,
Is it possible to bring up check-boxes next to each search result and Doc lib action menu in the search result page of alfresco.
If yes then how do i do it?

Thank u in advance…!!
3 REPLIES 3

zladuric
Champ on-the-rise
Champ on-the-rise
Yes, you could do that. Search results are drawn by a YUI datatable. Check out the file <ROOT>/share/components/search/search.js. There is a datatable instantiation there, look for
var columnDefinitions
. It's an array of two columns that draw search results - one for an icon, another for data. There are also two functions just above it that render the individual cells.

I would add a third column, something like
{key: "nodeRef", label: "Select", formatter: YAHOO.widget.DataTable.formatCheckbox}
.

Or set a custom formatter there ,and add some behavior to it, an action click or whatever you need.

thank u!!

but what about doc lib action menu "Selected Item menu"!?