首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何强制joomla搜索最多一个组件数据

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

Stack Overflow用户
提问于 2012-04-18 12:02:42
回答 1查看 456关注 0票数 1

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

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2012-04-18 20:14:02

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

代码语言:javascript
复制
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.
票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/10202592

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档