如何使 Joomla 中的组件显示为文章?
更具体地说,我试图使 mailto 组件显示在我的模板中; 和文章一样。
默认情况下,mailto 组件在新窗口中打开。 到目前为止,我更改了代码,以便它在同一窗口中打开,但这样整个模板就消失了。
有什么建议么?
More specifically I am trying to make the mailto component show within my template; the same way as an article does.
By default the mailto component opens in a new window. So far I changed the code so it opens on the same window, but that way the whole template is gone.
Any suggestions?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
模板中有一个标签,它获取组件的内容。 文章是一个 com_content 组件。 您正在尝试放入 caom_mail_to 组件吗? 美妙之处在于它们都插入同一个插槽。
现在,一页上只能有一个组件。 你可以有很多模块,但只能有一个组件。
您可以通过从菜单命令中选择哪个组件来设置页面上的组件。 (每个菜单项都引用一个组件。)通常,componetsn 属于 com_content 类型,并且是文章,但在您的情况下,您想要添加一个名为 com_mailto 的组件吗? 假设该组件已安装,您所要做的就是在菜单项管理器中选择新按钮,然后选择 mailto 组件类型。
joomla 1.5 模板中使用的标签是:
另一方面,如果您尝试向模板添加模块,那就是另一回事了。 您需要创建该模块的一个实例,将其分配给一个标签(该标签存在于该模板中),然后选择该模块将发布到哪些菜单项。 模块模板中的标签类似于:
您可以将多个模块放入一个占位符中。
如果您已经具备了这些基本知识,请传递该组件的详细信息,我们将看看能否为您找到更好的解决方案。
In the template there is a tag which takes the contents of a component. An article is a com_content component. you are trying to put in a caom_mail_to component? The beauty is that they both plug into the same slot.
Now you can only ever have one component on a page. you can have lots of modules, but only one component.
you set which component is on a page by choosing it from the menu comands. (each menu item refers to a component.) generaly the componetsn are of the com_content type, and are articles, but in your case you are wanting to add a component called com_mailto? Asuming the component is installed, all you have to do is select the new butto0n when in menu item manager, and then select the mailto component type.
the tag that is being used in a joomla 1.5 template is:
If on the other hand you are trying to add a module to the template, that is a different kettle of fish. Youy need to create an instance of teh module, assign it to a tag (which exiusts in teh template) then select which menu items the module will be published on. The tag in a template for a module is like:
you can put more than one module into a single place holder.
If you already have this basic knowlge, pass on the details of this component, and we will see if we cant find you a better solution.
使用“组件作为内容”插件
http:// extensions.joomla.org/extensions/core-enhancements/embed-&-include/5947/details
use "component as content" plugin
http://extensions.joomla.org/extensions/core-enhancements/embed-&-include/5947/details
恐怕我无法完全理解您的问题 - 您想要以文章形式显示会员注册表格或电子邮件通知吗? 如果是这样,那么最简单的方法是安装“m2c”——“模块到组件”组件。 然后您可以将任何模块(即注册框)放在中心内容区域中。
m2c 组件可以在这里找到:http://joomla.focalizaisso.com。 br/en/componentes/index.php
I'm afraid I can't entirely follow your question - do you want to have a sign up form for membership or email notifications shown as an article? If so, then the easiest way is to install 'm2c' - the 'module to component' component. Then you can put any module (ie the sign up box) in the centre content area.
The m2c component can be found here: http://joomla.focalizaisso.com.br/en/componentes/index.php