PR-5.4-dev Pending

User tests: Successful: Unsuccessful:

avatar Divya3215
Divya3215
29 Mar 2026
  • I read the Generative AI policy and my contribution is compatible with the policy and GNU/GPL 2 or later.

Pull Request resolves #47488 .

Summary of Changes
This PR resolves an issue where alternative layouts ( template overrides ) ignored the 'option' and 'title' attributes in their XML files, displaying only the filename (e.g "alt') in the dropdown. This fix brings consistency between core component layouts and template overrides.

Testing Instructions
1.Create a template override for Category Blog in your active template:
path:
templates/[your_template]/html/com_content/category/alt.php
path:
templates/[your_template]/html/com_content/category/alt.php
2.Edit alt.xml and set:
.
3.Go to Articles>options>Category tab.
4.Open the "Choose a Layout" dropdown

Actual result BEFORE applying this Pull Request
The dropdown item for the template overide shows only the filename: "alt".

Expected result AFTER applying this Pull Request
The dropdown item correctly displays the translated text or string from the XML attribute:"MY_OPTION_TEXT".

Screenshot

Screenshot (3)

Link to documentations
Please select:

  • No documentation changes for guide.joomla.org needed
  • No documentation changes for manual.joomla.org needed
avatar Divya3215 Divya3215 - open - 29 Mar 2026
avatar Divya3215 Divya3215 - change - 29 Mar 2026
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 29 Mar 2026
Category Libraries
avatar Divya3215 Divya3215 - change - 29 Mar 2026
The description was changed
avatar Divya3215 Divya3215 - edited - 29 Mar 2026
avatar Divya3215 Divya3215 - change - 29 Mar 2026
The description was changed
avatar Divya3215 Divya3215 - edited - 29 Mar 2026
avatar Divya3215 Divya3215 - change - 30 Mar 2026
Labels Added: PR-5.4-dev
avatar muhme muhme - change - 30 Mar 2026
Title
Fix: Ensure 'option' and 'title' attributes are respected in alternative layout XML
[5.4] Ensure 'option' and 'title' attributes are respected in alternative layout XML
avatar muhme muhme - edited - 30 Mar 2026

Add a Comment

Login with GitHub to post a comment