Hi.
Joomla 3.9.20
It's seems that the alternative layout param is never user.
For exemple :
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*.*
i change the layout in com_content / categories / option, tab Category to my template layout blog1
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.
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: ? |
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.