Joomla 只显示文章上的模块,而不显示文章本身的内容 [英] Joomla show only modules on the article, but not the content of the article itself

查看:19
本文介绍了Joomla 只显示文章上的模块,而不显示文章本身的内容的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

标题几乎说明了一切.我想在文章上展示一些模块,而不是文章的内容,所以页面只由模块组成.如果我将其留空,它将不起作用,因为它仍然是一个空白段落.我只想显示模块.我已经看到了一些解决方法,但我认为它们适用于较低版本的 Joomla!.我的是 3.3.3谢谢!

The title pretty much explains itself. I want to display some modules on the article, but not the content of the article, so the page consists only of the modules. It doesn't work if I leave it blank as it still remains a blank paragraph. I just want to display the modules. I've seen some workarounds but I think they were for a lower version of Joomla!. Mine is 3.3.3 Thanks!

推荐答案

一个选项是为此页面使用精选文章"菜单项,并将其设置为显示 0 条前导和介绍文章和链接.该组件不会从 com_content 输出任何内容,您只能在任何位置显示您想要的模块.

One option is to use a Featured Articles menu item for this page, and set it to display 0 Leading and Intro Articles and Links. The component will output no content from com_content and you can only display the modules you want into any position.

或者,您可以创建一篇文章,在其正文中加载模块,使用加载模块"内容插件,并让它显示这些模块而不显示其他内容.

Alternatively, you could create an article which would load modules in its body, with the "Load Module" content plugin, and have it display these modules without other content.

为此,您需要启用加载模块"插件.加载模块的语法是 {loadposition myposition},加载分配给当前菜单项该位置的任何模块,或 {loadmodule modulename},按模块名称加载一个模块.

For this to work you need to have the "Load Module" plugin enabled. The syntax to load modules is either {loadposition myposition}, that loads any modules assigned to that position for the current menu-item, or {loadmodule modulename} that loads one single module by module name.

加载模块文档

这篇关于Joomla 只显示文章上的模块,而不显示文章本身的内容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆