User tests: Successful: Unsuccessful:
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
Link to documentations
Please select:
| Status | New | ⇒ | Pending |
| Category | ⇒ | Libraries |
| Labels |
Added:
PR-5.4-dev
|
||
| Title |
|
||||||