简体   繁体   English

文章未显示在定制模板joomla 3.1的前端

[英]Articles not showing up on front end on a custom made template joomla 3.1

I have created my own Joomla template using Joomla 3.1. 我已经使用Joomla 3.1创建了自己的Joomla模板。 I have my main menu with the menu item "home" that leads to the front page. 我的主菜单包含指向首页的菜单项“ home”。 I have a module called "body" in which I want my articles to be displayed, depending on which page the user is I want a different article to show up. 我有一个名为“ body”的模块,我希望在该模块中显示我的文章,具体取决于用户是在哪个页面上显示其他文章。

The article that I want to show up on the "Home" page is in a category called "home". 我想在“主页”页面上显示的文章位于一个名为“主页”的类别中。 My menu item "home" is a single article linking to the article I want to be on the front page. 我的菜单项“首页”是一篇文章,链接到我希望在首页上发表的文章。

All of the statuses are on published and the access on all mentioned items are public. 所有状态均已发布,所有提到的项目的访问权限均为公开。 When I open the front end I can see the "body" module but no article. 当我打开前端时,我可以看到“ body”模块,但没有文章。 If I try using Protostar there is no problem and the article shows up. 如果我尝试使用Protostar,则不会出现问题,并且会显示该文章。

Can anyone help? 有人可以帮忙吗? I suppose it is because there is no link between the "body" module and my article/category...?!? 我想这是因为“ body”模块与我的文章/类别之间没有链接...?!?

Found the solution: all I needed to do is to add the tag jdoc:include type="component" / into my template. 找到了解决方案:我要做的就是将标记jdoc:include type="component" /到我的模板中。 After that it worked fine... 之后效果很好...

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

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