0

我正在为 Joomla 2.5 和 3.x 制作系统插件,它应该在 templates/template_name/html 之前首先检查不同的 html overrides 文件夹,它运行良好但老实说我不喜欢它,因为它是一个很容易被杀死的黑客joomla 更新。例如覆盖模块 chrome 在我的插件中我有:

public function onAfterInitialise() {
     JLoader::register('JModuleHelper','path to my application module helper');
}

在我的自定义 helper.php 中,我更改了JModuleHelper类方法renderModule() 以按以下顺序检查 html 覆盖:

check my plugin html folder if module override file is there use it 
if no override in my plugin check template html folder 
if none of the above use joomla default. 

joomla 默认是:

    check my template html folder if module override file is there use it 
   if no override in template html, use joomla default. 

没有更简单的方法来实现这一点吗?

任何帮助表示赞赏。谢谢!

4

1 回答 1

0

实现我所追求的最好方法是这个 http://docs.joomla.org/How_to_override_the_component_mvc_from_the_Joomla!_core

http://extensions.joomla.org/extensions/style-a-design/template/15611

于 2013-11-03T20:09:46.063 回答