User tests: Successful: Unsuccessful:
This PR fixes multiple bugs and improves the structure of components/com_content/tmpl/article/default.php.
The article template had several issues causing PHP notices, broken layout behaviour, and redundant code that made it harder to maintain.
alternative_readmore was incorrectly read from $this->item — moved to the correct source $attribs$urls->urls_position does not exist on the URLs object; now correctly falls back to $params->get('urls_position')$pageclass_sfx in the wrapper div classJHtml::_('string.truncate') calls on the article title — $this->escape() is sufficientelseif and else branches in the readmore section<div class="article-body"> for better structureFixes undefined property notice on article template as reported in Joomla issue tracker.
Please select:
Documentation link for guide.joomla.org:
No documentation changes for guide.joomla.org needed
Pull Request link for manual.joomla.org:
No documentation changes for manual.joomla.org needed
| Status | New | ⇒ | Pending |
| Category | ⇒ | Front End com_content |
it is a requirement that you have tested all code that you submit. This code can not have been tested successfuly as there are some very obvious errors.
| Status | Pending | ⇒ | Closed |
| Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2026-03-31 09:00:55 |
| Closed_By | ⇒ | archisha30 | |
| Labels |
Added:
PR-5.4-dev
|
||
| Status | Closed | ⇒ | New |
| Closed_Date | 2026-03-31 09:00:55 | ⇒ | |
| Closed_By | archisha30 | ⇒ |
| Status | New | ⇒ | Pending |
it is a requirement that you have tested all code that you submit. This code can not have been tested successfuly as there are some very obvious errors.
Thank you for the feedback. I used AI assistance to help generate the fix, and I should have disclosed that and tested the code properly before submitting. I will close this PR, test the changes locally, and resubmit correctly
Please close
| Status | Pending | ⇒ | Closed |
| Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2026-03-31 12:45:09 |
| Closed_By | ⇒ | archisha30 | |
| Labels |
Added:
AI Generated
|
||
You were given a template to complete for a reason. You have removed the confirmation about AI. From reading your proposal this is clearly AI generated.