Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to show all sub-categories articles?

Choosing menu item type to "Category Blog,List All Categories, and Category List" would result all subcategories link not direct to all articles of sub-categories.

But I want to show directly the all articles of sub-categories.

main-category
   sub-categories
       cat-1
            article
            article
            .......
       cat-2
            article
            article
            .......
       cat-3
            article
            article
            .......

Now, how to show all articles of main-category?

like image 653
Bhojendra Rauniyar Avatar asked Mar 05 '14 07:03

Bhojendra Rauniyar


2 Answers

In Menu Item Settings: Blog Layout -> Choose Include Subcategories "ALL"

UPDATE

FYI: This behavior can be set also globally for all Blog Layout Menu Items.
In Article Manager Options -> Blog / Featured Layouts Tab -> Include Subcategories.

like image 62
Sbpro Avatar answered Nov 05 '22 02:11

Sbpro


first, find the column params in your database table ###_extensions which row name is com_content.

update the inner value in the JSON string, "show_subcategory_content":0 to "show_subcategory_content":1 that mean for 1 level subcategory support.
This is a global configuration.

If you just want one menu item to support that, find the item in table ###_menu and add "show_subcategory_content":1 in params which works.

like image 41
sky Avatar answered Nov 05 '22 02:11

sky