3
有沒有什麼方法可以在模板中設置<jdoc:include type="component" />
的輸出風格,而無需修改Joomla核心功能?如何在模板中設置<jdoc:include type =「component」/>的輸出風格?
具體而言,我想添加一個ID爲article
的div來包含文章,而不是其他內容。現在,在我的主題中,有一個類item-page
的div,其中包括文章,評級,行動甚至評論框(添加了外部插件)。
所以,我想新的模板是這樣的:
<div class="item-page>
<!-- something here -->
<div id="article">
<!-- The article and nothing else here -->
</div>
<!-- comments and whatever may be here -->
</div>