开发者

Is there is any way to replace the default search module in Drupal

i am planning to create an custom search module in drupal .my aim is to replace the existing search feature (ie the default search ) is there is any way开发者_如何学运维 to override the default search feature ...


You can implement hook_search and create your own search, and you can use Custom Search to set your default search and/or disable the standard ones.

You can also just use the Forms API and hook_menu and do something completely custom.

Also check out the accepted answer to Search hook for filtering results? for another idea.


Sure there is! See this example: http://drupal.org/project/apachesolr


I'm not sure of your Drupal background - but if you're new, you might like to know: you can do a lot with Exposed Filters in Views to provide search functionalitites. Depending on what you want to do, you could just de-activate the search module, and create a View with exposed filters for searching the appropriate content types and fields, and create a Block display for that view (on the left side of the UI, where you make a "page").

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜