No Code Attached Yet
avatar rolandalsace
rolandalsace
27 Jul 2020

Hi.

Joomla 3.9.20

It's seems that the alternative layout param is never user.

For exemple :

  1. for com_content category view, in the template i duplicate all the files blog*.* in the template folder /templates/my_template/html/com_content/categoy. with the new name blog1*.*

  2. i change the layout in com_content / categories / option, tab Category to my template layout blog1

  3. when i display the categorie, it's always the layout of name "blog" wich is used.

I think there is a problem in /librairies/src/MVC/View/CategoryView.php in lines 222, 226 where the :
elseif ($layout = $category->params->get('category_layout'))
if is misplaced.

Perhaps it should be placed in the before level as else of the
if (isset($active->query['layout']))

Others problems, this alternative layout blog1 defined in the template is not detected in com_content categories and category menu parameters ("choose a layout")

Regards.

Steps to reproduce the issue

Expected result

Actual result

System information (as much as possible)

Additional comments

avatar rolandalsace rolandalsace - open - 27 Jul 2020
avatar joomla-cms-bot joomla-cms-bot - labeled - 27 Jul 2020
avatar rolandalsace rolandalsace - change - 27 Jul 2020
The description was changed
avatar rolandalsace rolandalsace - edited - 27 Jul 2020
avatar rolandalsace rolandalsace - change - 27 Jul 2020
The description was changed
avatar rolandalsace rolandalsace - edited - 27 Jul 2020
avatar rolandalsace rolandalsace - change - 27 Jul 2020
The description was changed
avatar rolandalsace rolandalsace - edited - 27 Jul 2020
avatar rolandalsace rolandalsace - change - 27 Jul 2020
The description was changed
avatar rolandalsace rolandalsace - edited - 27 Jul 2020
avatar SharkyKZ
SharkyKZ - comment - 17 Sep 2020

Layout option in Category tab is used to set the default layout for categories that do not belong to any menu item. Categories that do belong to a menu item take the layout from the menu item. In this case you'd have to create a menu item of Articles -> Blog1 type.

Layout option in the menu item is meant for articles belonging to the menu item.

avatar joomdonation joomdonation - close - 12 Nov 2022
avatar joomdonation
joomdonation - comment - 12 Nov 2022

As explained by @SharkyKZ , this is expected behavior. The layout selected in active menu item has higher priority than the layout selected in the category itself.

I'm closing this issue as it is working as expected.

avatar joomdonation joomdonation - change - 12 Nov 2022
Status New Closed
Closed_Date 0000-00-00 00:00:00 2022-11-12 14:20:03
Closed_By joomdonation
Labels Added: No Code Attached Yet
Removed: ?

Add a Comment

Login with GitHub to post a comment