简体   繁体   English

模块中的Joomla类别博客

[英]Joomla category blog in a module

I'm trying to take the mainbody display of the home page (featured articles category blog) and display it on some other page as a module. 我试图以主页(特色文章类别博客)的主体显示并将其作为模块显示在其他页面上。

I'm using Joomla 2.5.18 and the latest Gantry framework with a Rockettheme Kirigami template . 我正在使用Joomla 2.5.18和带有Rockettheme Kirigami template的最新Gantry framework

I have installed the Sourcerer plugin so I can add PHP code to modules, and now I'm trying to find the PHP code for displaying the frontpage mainbody as I think this could be the way. 我已经安装了Sourcerer插件,因此可以将PHP代码添加到模块中,现在,我试图找到用于显示首页标题的PHP代码,因为我认为这可能是这样。

How do I do this? 我该怎么做呢? how can i display the fronted PHP code? 如何显示前端的PHP代码?

So, again, I'm trying to display this on demand: a category blog with a list of featured articles. 因此,我再次尝试按需显示此内容:类别博客,其中包含特色文章列表。 In a module, so I can use it anywhere. 在模块中,因此我可以在任何地方使用它。

Your mainbody display of the home page must be populated by an article or modules. 主页的主要显示必须由文章或模块填充。

  • If it is populated by an article, you can copy the desired section the code from that article and paste into a Custom HTML module. 如果它是由文章填充的,则可以从该文章中复制所需部分的代码,然后粘贴到“自定义HTML”模块中。
  • If it is populated by module(s), you can duplicate those modules. 如果它是由模块填充的,则可以复制那些模块。 If you want them in the same position as they are displayed on the home page, simply select the other page you would like them to be displayed on, from the Menu Assignment tab. 如果您希望它们与主页上显示的位置相同,只需从“菜单分配”选项卡中选择希望它们显示在另一页上。

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

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