如何强制 joomla 搜索最多只能搜索一个组件数据


How to enforce joomla search upto one component data only

默认情况下,joomla(2.5) 搜索模块只搜索文章、类别、网络链接等,但我想增强功能,使其从一个组件数据中搜索表数据,留下另一个搜索条件。

经过谷歌搜索和头脑风暴,我自己找到了解决方案,所以我想与你分享。

In Joomla we have to create a plugin to enhance features of search
module.
If we want that the "search module" to search data from our custom
compenents then we have to create a plugin for that. This link is
very useful while creating  a joomla search plugin
"http://docs.joomla.org/Creating_a_search_plugin".
once a plugin is created you need to zip the folder and then upload
your plugin through the joomla "Extension Manager" in the admin
panel.
If you want to have only search criteria from the component and not
articles, weblinks, categories etc "disable" these plugins.