如何在Joomla中将Component放入模块中!现场?

时间:2022-08-22 20:17:34

I wonder if exists a way to put component into module without install plugin, neither component nor module.

我想知道是否存在一种方法将组件放入模块而没有安装插件,既不是组件也不是模块。

Thanks and my apologize for my bad English.

谢谢,我为我糟糕的英语道歉。

3 个解决方案

#1


First, should unable Editor from configuration site, in Panel Admin. Then, go to Extension -> Plugins -> TinyMCE and delete forbidden items "script". Now, go to "create module", with custom HTML5 and put something like this:

首先,在Panel Admin中,配置站点无法进行编辑。然后,转到扩展 - >插件 - > TinyMCE并删除禁止的项目“脚本”。现在,转到“创建模块”,使用自定义HTML5并输入如下内容:

<script src="https://code.jquery.com/jquery-1.10.2.js"></script>
<div id="new-projects">

</div>

<script type="text/javascript">
$( "#new-projects" ).load( "urlOfYourComponent #idYouWouldShow" );
</script>

Thanks to Ilias cause the idea.

感谢伊利亚斯引起了这个想法。

#2


The only way to achieve this without installing any extensions is via a custom HTML joomla module where you'll place your component in an iframe. Then if you want to load only the component part of the fetched page in the iframe use jquery's load function.

在不安装任何扩展程序的情况下实现此目的的唯一方法是通过自定义HTML joomla模块,您可以将组件放在iframe中。然后,如果您只想在iframe中加载已获取页面的组件部分,请使用jquery的加载函数。

#3


If i'm correct, You don't wanna install any kind of extension that do that, you ask for vanilla possibility to put component into module, so this is the answer, there is no way to put whole component into module. Partial Example: You can put article into custom HTML module or list categories into modules, but you will never see whole component into module. Why? Because component its a core thing on site, like people in building (or even the whole building) eg. house, and module is like painting on the wall, You can't put building on the painting.

如果我是正确的,你不想安装任何类型的扩展,你要求将组件放入模块的香草,所以这就是答案,没有办法将整个组件放入模块。部分示例:您可以将文章放入自定义HTML模块或列表类别到模块中,但您永远不会将整个组件看到模块中。为什么?因为组件是现场的核心事物,就像建筑物(甚至整个建筑物)中的人一样。房子,模块就像在墙上画,你不能把建筑放在画上。

#1


First, should unable Editor from configuration site, in Panel Admin. Then, go to Extension -> Plugins -> TinyMCE and delete forbidden items "script". Now, go to "create module", with custom HTML5 and put something like this:

首先,在Panel Admin中,配置站点无法进行编辑。然后,转到扩展 - >插件 - > TinyMCE并删除禁止的项目“脚本”。现在,转到“创建模块”,使用自定义HTML5并输入如下内容:

<script src="https://code.jquery.com/jquery-1.10.2.js"></script>
<div id="new-projects">

</div>

<script type="text/javascript">
$( "#new-projects" ).load( "urlOfYourComponent #idYouWouldShow" );
</script>

Thanks to Ilias cause the idea.

感谢伊利亚斯引起了这个想法。

#2


The only way to achieve this without installing any extensions is via a custom HTML joomla module where you'll place your component in an iframe. Then if you want to load only the component part of the fetched page in the iframe use jquery's load function.

在不安装任何扩展程序的情况下实现此目的的唯一方法是通过自定义HTML joomla模块,您可以将组件放在iframe中。然后,如果您只想在iframe中加载已获取页面的组件部分,请使用jquery的加载函数。

#3


If i'm correct, You don't wanna install any kind of extension that do that, you ask for vanilla possibility to put component into module, so this is the answer, there is no way to put whole component into module. Partial Example: You can put article into custom HTML module or list categories into modules, but you will never see whole component into module. Why? Because component its a core thing on site, like people in building (or even the whole building) eg. house, and module is like painting on the wall, You can't put building on the painting.

如果我是正确的,你不想安装任何类型的扩展,你要求将组件放入模块的香草,所以这就是答案,没有办法将整个组件放入模块。部分示例:您可以将文章放入自定义HTML模块或列表类别到模块中,但您永远不会将整个组件看到模块中。为什么?因为组件是现场的核心事物,就像建筑物(甚至整个建筑物)中的人一样。房子,模块就像在墙上画,你不能把建筑放在画上。