Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我将我的类别博客覆盖设置为显示一篇主要文章,即已发布的最新文章。
我已将所有文件复制到正确的位置,并且覆盖工作正常但是,我需要更改 blog.php 的哪个部分,而不是显示“阅读更多”按钮,而是显示整篇文章?
要更改/覆盖的模板文件是 blog_item.php 而不是 blog.php。寻找这行代码:
<?php echo $this->item->introtext; ?>
并将其更改为:
<?php echo $this->item->introtext; echo JHtml::_('content.prepare', $this->item->fulltext); ?>
可以通过您为博客创建的菜单项的选项来删除“阅读更多”按钮。将显示“阅读更多”设置为隐藏。