RTC bug PR-5.3-dev Pending

User tests: Successful: Unsuccessful:

avatar Hackwar
Hackwar
14 Feb 2025

Summary of Changes

The com_content category view has code to add the author of the category as an author meta tag. This code does not work and the meta tag is never set for category views. This PR fixes that.

This is the last occurence of usage of the LegacyPropertyManagementTrait for the CategoryNode class in our core code and would then allow us to delete that trait from that class in 6.0.

Testing Instructions

  1. Create a category and link it in a menu, for example as a blog category view.
  2. Make sure the option Author Meta Tag in global configuration of Joomla is enabled.
  3. Visit the category in the frontend and look at the source code.

Actual result BEFORE applying this Pull Request

No author meta tag.

Expected result AFTER applying this Pull Request

A meta tag similar to the following is displayed: <meta name="author" content="John Doe">

Link to documentations

Please select:

  • Documentation link for docs.joomla.org:

  • No documentation changes for docs.joomla.org needed

  • Pull Request link for manual.joomla.org:

  • No documentation changes for manual.joomla.org needed

avatar Hackwar Hackwar - open - 14 Feb 2025
avatar Hackwar Hackwar - change - 14 Feb 2025
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 14 Feb 2025
Category Front End com_content
avatar brianteeman
brianteeman - comment - 14 Feb 2025

shouldnt this go in the schema and not the meta now

avatar Hackwar
Hackwar - comment - 14 Feb 2025

This currently just fixes the existing code. Since the same code is in the article view, I would first fix it like that. Moving this to the schema would be out of scope for this PR and also not what I would want to decide here.

avatar fgsw fgsw - test_item - 15 Feb 2025 - Tested successfully
avatar fgsw
fgsw - comment - 15 Feb 2025

I have tested this item ✅ successfully on d5dc55d


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/44903.

avatar richard67 richard67 - test_item - 15 Feb 2025 - Tested successfully
avatar richard67
richard67 - comment - 15 Feb 2025

I have tested this item ✅ successfully on d5dc55d

Tested successfully that the PR does what it says. However, I'm not sure if I really want to have an author tag in a category blog if the author of the articles is different to the author of the category. But as the intention of existing code obviously was to add that meta tag and just the code was wrong, this PR is right, and anything else is out of scope.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/44903.

avatar richard67 richard67 - change - 15 Feb 2025
Status Pending Ready to Commit
Labels Added: bug PR-5.3-dev
avatar richard67
richard67 - comment - 15 Feb 2025

RTC


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/44903.

avatar rdeutz
rdeutz - comment - 16 Feb 2025

Agree with @bembelimen we should just remove both lines without a replacement.

avatar richard67 richard67 - change - 16 Feb 2025
Status Ready to Commit Pending
avatar richard67
richard67 - comment - 16 Feb 2025

Back to pending due to requested changes.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/44903.

avatar Hackwar Hackwar - change - 17 Feb 2025
Labels Added: Updates Requested
avatar Hackwar
Hackwar - comment - 17 Feb 2025

Ok, done. I removed it entirely.

avatar QuyTon QuyTon - test_item - 20 Feb 2025 - Tested successfully
avatar QuyTon
QuyTon - comment - 20 Feb 2025

I have tested this item ✅ successfully on c18d1ee


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/44903.

avatar fgsw fgsw - test_item - 20 Feb 2025 - Tested successfully
avatar fgsw
fgsw - comment - 20 Feb 2025

I have tested this item ✅ successfully on c18d1ee

Test by using custom update server.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/44903.
avatar richard67 richard67 - change - 20 Feb 2025
Status Pending Ready to Commit
avatar richard67
richard67 - comment - 20 Feb 2025

RTC


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/44903.

avatar ZIGUENOTO
ZIGUENOTO - comment - 22 Feb 2025

RTC


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/44903.

avatar rdeutz rdeutz - change - 27 Feb 2025
Labels Added: RTC
Removed: Updates Requested
avatar rdeutz rdeutz - change - 27 Feb 2025
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2025-02-27 12:37:48
Closed_By rdeutz
avatar rdeutz rdeutz - close - 27 Feb 2025
avatar rdeutz rdeutz - merge - 27 Feb 2025

Add a Comment

Login with GitHub to post a comment