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

查看:367
本文介绍了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天全站免登陆