I'm using search_file_attachments module for my search, And also Search combine
module to show all the results in one page. In the search results page, I like to maintain a structure. I need to show the node title
instead of attached file name
, and redirect to node url
instead of attached file path
when a user click on a result. So implement the template_preprocess_search_results()
in my module overwrite the results. I tried to figure out the array result using devel
.
function template_preprocess_search_result(&$variables) {
dpm($variables);
}
And this my Devel results:
I cannot see any node details here, I guess this module only searching files in the folders. I'm finding a way to get the node details related to this results. Hope you guys got my question, Thanks in advance,