Issue:
On Joomla 5.4.7+ and 6.1.2+, an article’s Options → Alternative Layout (stored as article_layout in the article attribs) is not applied when the article is viewed through a Single Article menu item. The frontend uses the global com_content article layout instead.
This is a regression from PR #47752, which stopped merging all article attribs and only copies keys whose menu/state value is the string use_article.
Related issues: #48058, #48062.
Steps to Replicate:
templates/[template]/html/com_content/article/mylayout.php. Use markup that is easy to recognise on the frontend.6.1
The article’s Alternative Layout is used.
The global article layout is used. The layout selected on the article is ignored.
Joomla: 6.1.x (also reproducible on 5.4.7+)
PHP: 8.3
Template: any template with a custom article layout override
Menu item type: Articles → Single Article
Root cause
In components/com_content/src/Model/ArticleModel.php (getItem()), parameter handling changed from merging the article attribs registry into the params object to only copying keys when the menu/state value is 'use_article'.
That sentinel is used by listing-style menu options such as Use Article Settings for display toggles (show title, show author, etc.). It is not how Alternative Layout is configured.
For a typical Single Article menu item:
PR #47752 correctly improves Menu → Article → Global resolution for fields that use use_article, but it drops article_layout, which is still set on the article and is still documented as the way to assign a custom Alternative Layout.
Suggested fix
Keep the use_article three-tier logic for display fields, and also apply article_layout from the article attribs when it has an explicit value, for example after the existing loop:
if ($registry->get('article_layout') != '') {
$data->params->set('article_layout', $registry->get('article_layout'));
}
Temporary workarounds
Impact
Any site that assigns per-article Alternative Layouts and opens those articles via Single Article menu items is affected after upgrading to 5.4.7 or 6.1.2. Global layout and menu-link layout= still work; article-level Alternative Layout does not.
| Labels |
Added:
No Code Attached Yet
bug
|
||
| Status | New | ⇒ | Closed |
| Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2026-08-17 17:32:40 |
| Closed_By | ⇒ | chmst |
already fixed.
This is a known issue and will be permanently fixed in the next release. In the meantime there is a hotfix available https://www.joomla.org/announcements/release-news/joomla-6-1-2-5-4-7-security-bugfix-release.html