当前位置: 动力学知识库 > 问答 > 编程问答 >

php - How to display articles in joomla cms? (in own html template)

问题描述:

How to display articles in joomla cms? (in own html template)

My try:

 <positions>

<position>articles</position>

</positions>

index.php:

<jdoc:include type="modules" name="articles" />

but nothing is displayed.

网友答案:

You can't directly show an article in the template. The template defines positions for modules and where the component output goes. How the module positions are filled and what will be shown withing the component container is up to Joomla and how you set the modules, menu items and everything.

Usually articles are shown by the component com_content, that means an article is shown within the component container (the main part of your site). However you could use an extension which allows to put an article into a module position. Then you enable this module and assign it to a module position.

分享给朋友:
您可能感兴趣的文章:
随机阅读: