简体   繁体   English

类别页面上的Joomla子类别文章链接

[英]Joomla subcategory article links on category page

I'm using category page, and i have a list of subcategories there. 我正在使用类别页面,并且那里有一个子类别列表。 like: 喜欢:

Category Title category descirption 类别标题类别说明

Category Title 02 category descirption 类别标题02类别描述

Category Title 03 category descirption 类别标题03类别描述

and i wanna add a links to the articles inside those subcategories. 我想在这些子类别中添加指向文章的链接。 I know, i have to make changes in com_content/views/category/tmpl/default_children.php but what i have to insert there? 我知道,我必须在com_content / views / category / tmpl / default_children.php中进行更改,但是我必须在其中插入什么?

i've found this is for the main category 我发现这是针对主要类别的

<?php echo $this->loadTemplate('articles'); ?>

but what to put if i wanna have articles from child? 但是如果我想从孩子那里拿东西该怎么办?

I suggest that if you have enough positions in your template, you can just make a custom HTML module, add your link in it, then assign it where it must be shown. 我建议,如果模板中有足够的位置,则可以制作一个自定义HTML模块,在其中添加链接,然后将其分配在必须显示的位置。

changing the main files of joomla is not recommended. 不建议更改joomla的主文件。 besides after updates you should check if you have to change you code again? 除了更新后,您还应该检查是否必须再次更改代码?

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

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