php - 如何强制 joomla 仅搜索一个组件数据

标签 php mysql joomla joomla2.5

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

最佳答案

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

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.

关于php - 如何强制 joomla 仅搜索一个组件数据,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10202592/

相关文章:

javascript - 关于发帖请求

php - FFMPEG 500 内部服务器错误

python - 使用executemany从pandas数据帧更新mysql数据库

css - 如何创建指向 url 的自定义按钮链接

Joomla 不使用别名?

php - 如何从 Active Directory 填充 Apache 服务器中的 REMOTE_USER(SSO 相关)

php - 密码验证无法将散列密码与用户输入的密码进行比较

php - 将对象克隆到 $this

命令中的 Powershell 变量不起作用

python - MySQL-python 未安装在 virtualenv 中(环境错误 : mysql_config not found)