Joomla 4 Category Blog show subcategories articles #35654
Unanswered
barsdeveloper
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I'm overriding the category blog template because I would like to show articles inside subcategories, beside the subcategory name. To do this I'm overriding blog_children.php template and specifically, I'm interested in what happens here
joomla-cms/components/com_content/tmpl/category/blog_children.php
Line 45 in fe882f6
IT shows the category title and that's it but I would like to print all the articles inside this subcategory, maybe print again the blog view of that category.
I know I can show articles from subcategories by setting Blog Layout > Include Subcategories to "All". The problem is that in this way the articles from subcategories are not inside a common HTML element but are all sibling of all the other articles from other categories.
The structure I would like to have instead is like this (note that articles from the same category are inside the same parent):
Do you have an example of how: given a category (like the highlighted line of code) I can print all articles inside that category, or I can print again this view for that category?
Thanks fo any help.
Beta Was this translation helpful? Give feedback.
All reactions