简体   繁体   中英

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.

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. 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:

Now create your override in the Column Modules > mod_k2_tools Find the file in:
/templates/your_template/html/mod_k2_tools/search.php

Find another example specifically for plugins here:
https://docs.joomla.org/Layout_Overrides_in_Joomla

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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