[5.4.x] Category layout can't be used in templates #47711
Replies: 16 comments 2 replies
|
I can't reproduce. |
|
Do you already have a menu item that points to sub category 1 |
Did you want to make an aternative layout? |
As described, I reproduce this with a fresh new Joomla 5.4.3 installation with no other template than Cassiopeia. |
Not at this time. Juste noticed this with the standard Cassiopeia template. |
|
Hi, I’ve reproduced this issue on Joomla 5.4.x using the Cassiopeia template. I’d like to work on fixing this issue. Could you please confirm if this is expected behavior or if a fix would be welcome? Thanks! |
|
Hi, I've been trying to fix the bug but the problem arise here is that |
|
@jiteshkhatri11 can you explain what you did to reproduce the issue? Some screenshots of the settings (categories, menu item, etc.) could be helpful. As someone regularly using category blog on websites, I'm still unable to reproduce the issue. |
|
Hi @drmenzelit, thanks for your response! I’ve reproduced the issue on a fresh Joomla 5.4.x installation using the Cassiopeia template. Here are the exact steps:
Result:
Expected:
This seems to happen because subcategories are rendered using children templates instead of inheriting the blog layout, possibly requiring a model-level fix. I’ll attach screenshots below for clarity. Thanks! |
|
Hi @drmenzelit, thanks for the clarification! I understand now that the subcategories displayed below the main category are expected to appear as a list, and the blog layout is applied only when navigating into the subcategory. It seems I misunderstood the expected behavior initially. Thanks for explaining this! I’ll explore other issues to contribute to. Appreciate your guidance. |
|
@dsic-se-support-web can you please check my comment above? |
|
Hi ! Well... It would seems that I too misunderstood the behavior. So, if I understand correctly, the sub-categories displayed in a blog view of articles are only shown in list layout and never in blog layout ? Perhaps i'm wrong and don't understand the concept of this but this behavior stays a bit confusing and illogical to me. If I change the layout in the "Options" tab of a Category, the logical result, in my opinion, should apply to the category layout. The same flawed understanding of logical behavior is found on System > Global Configuration > Articles | Category tab. Since these are Categories options, the "Choose a Layout" option should logically affect the layout of categories. To set the articles layout published in a category, the logical and used way is to use a blog or list view from a menu layout. Maybe we could consider this as an evolution rather than a bug? |
|
Yes, your understanding is correct. In Joomla’s current behavior, subcategories displayed within a Category Blog view are always rendered as a list (via children templates), while the selected layout (Blog/List) is applied only when viewing that category directly. So:
I agree this can feel confusing, since the "Choose a Layout" option in Global Configuration and Category Options suggests it might affect category display more broadly. Given this, it may be better to consider this as a feature request or UX improvement rather than a bug. For example:
Thanks for raising this — it’s a valuable observation. |
|
Hi @pratibha-builds , Sorry for the late reply. Could you (or someone else) reclassify this issue as a feature request rather than a bug ? Indeed, all usefull information on this subject can be found here. Otherwise, i'll open a new feature resquest with a link to this issue before closing it. |
|
The Joomla Maintainer Team decided at the 17.06.2026 meeting to accept this feature. |

Uh oh!
There was an error while loading. Please reload this page.
What happened?
[Main category]
|- [sub category 1] => In "Option" tab, set Layout = "Use Global"
Or
[Main category]
|- [sub category 1] => In "Option" tab, set Layout = "Blog"
[Menu 1]
- Main tab settings => Menu Item Type = "Category blog", chosen category is [Main category], Parent Item = "No parent"
- Category tab settings => Subcategory Levels = "Use Global (1)" or any other value except "None"; Empty Categories = "Show"
Version
5.4
Expected result
Sub category [sub category 1] should be displayed in a blog type layout
Actual result
Sub category [sub category 1] is displayed in a list type layout regardless of the layout chosen in the category options and/or in System > Global configuration > Articles | Category tab => "Choose a Layout"
System Information
No response
Additional Comments
We tried to create overrides of files in /templates/cassiopeia/html/com_content/category/ with no suucess. It seems that "category_layout" var can't be used.
All reactions