简体   繁体   English

joomla模板覆盖搜索插件

[英]joomla template override search plugin

I am using the Joomla 3. I would like to know how can I override the Joomla search plugin under template. 我正在使用Joomla3。我想知道如何覆盖模板下的Joomla搜索插件。

I tried copying these files 我尝试复制这些文件

/plugins/search/k2/k2.php
/plugins/search/k2/k2.xml 

under the /templates/MY_TEMPLATE_NAME/html to create plg_search_k2 folder. /templates/MY_TEMPLATE_NAME/html下创建plg_search_k2文件夹。 It doesn't work. 没用 Anyone know how can we override the search plugin? 有谁知道我们如何覆盖搜索插件?

Use the Template Manager for create your overrides, first see the step bu step here: 使用模板管理器创建替代,首先在此处查看步骤bu步骤:

Now create your override in the Column Modules > mod_k2_tools Find the file in: 现在,在“列模块” >“ mod_k2_tools ”中创建覆盖。在以下位置找到文件:
/templates/your_template/html/mod_k2_tools/search.php

Find another example specifically for plugins here: 在此处找到专门针对插件的另一个示例:
https://docs.joomla.org/Layout_Overrides_in_Joomla https://docs.joomla.org/Layout_Overrides_in_Joomla

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM