简体   繁体   English

JOOMLA:插件的模板替代

[英]JOOMLA : template overrides for plugin

i'm doing a gallery plugin for joomla, someone told me to use template overrides, i really don't know what the hell is this, and why i need to use it for my gallery plugin? 我在为joomla做图库插件,有人告诉我要使用模板替代,我真的不知道这到底是什么,为什么我需要在我的图库插件中使用它? i did googling and found this article useful Joomla template override , but still i am not able understand why i need this, and how to do this for my gallery plugin 'cause the example i found is for modules, your help will be much appreciated. 我确实进行了谷歌搜索,并发现本文对Joomla模板覆盖有用,但仍然无法理解为什么需要它,以及如何为我的Gallery插件执行此操作,因为我发现的示例是针对模块的,因此将非常感谢您的帮助。

If you are simply trying to insert some content (a gallery) into the output via a plugin, template overrides are not what you need. 如果您只是想通过插件将某些内容(画廊)插入输出中,则不需要模板替代。 Template overrides would allow you to modify the output of a component or a module, but not to insert a functionality like a gallery. 模板覆盖将允许您修改组件或模块的输出,但不能插入诸如图库之类的功能。 You simply want to create a plugin that acts on onContentPrepare. 您只想创建一个对onContentPrepare起作用的插件。

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

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