Feature RTC Documentation Required PR-5.3-dev Pending

User tests: Successful: Unsuccessful:

avatar Fedik
Fedik
28 Apr 2024

Pull Request for Issue # .

Summary of Changes

Deprecate HTMLHelper::script(), HTMLHelper::stylesheet().
Extend lifetime for Document style/script methods, because they cannot be removed before HTMLHelper::script(), HTMLHelper::stylesheet().

Add a new method HTMLHelper::mediaPath(), because we still need to lookup for overides.
Kind of temporary solution, until someone will come up with improvements to our media override API.

Testing Instructions

Apply patch. Make sure all works as before.

Add media/templates/administrator/atum/css/user.css to atum template, and make sure it still works.

Actual result BEFORE applying this Pull Request

Works

Expected result AFTER applying this Pull Request

Works

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: joomla/Manual#379
  • No documentation changes for manual.joomla.org needed
avatar Fedik Fedik - open - 28 Apr 2024
avatar Fedik Fedik - change - 28 Apr 2024
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 28 Apr 2024
Category Libraries
avatar Fedik Fedik - change - 28 Apr 2024
Labels Added: PR-5.2-dev
avatar degobbis degobbis - test_item - 24 Aug 2024 - Tested successfully
avatar degobbis
degobbis - comment - 24 Aug 2024

I have tested this item ✅ successfully on 4dd7f9c


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

avatar HLeithner
HLeithner - comment - 2 Sep 2024

This pull request has been automatically rebased to 5.3-dev.

avatar HLeithner HLeithner - change - 2 Sep 2024
Title
[5.2] Deprecate HTMLHelper::script(), HTMLHelper::stylesheet(), extend lifetime for Document style/script methods
[5.3] Deprecate HTMLHelper::script(), HTMLHelper::stylesheet(), extend lifetime for Document style/script methods
avatar HLeithner HLeithner - edited - 2 Sep 2024
avatar dgrammatiko dgrammatiko - test_item - 26 Jan 2025 - Tested successfully
avatar dgrammatiko
dgrammatiko - comment - 26 Jan 2025

I have tested this item ✅ successfully on 4dd7f9c


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

avatar laoneo
laoneo - comment - 27 Jan 2025

This needs documentation as well.

4bd5029 1 Feb 2025 avatar Fedik cs
avatar Fedik Fedik - change - 1 Feb 2025
Labels Added: Feature Documentation Required PR-5.3-dev
Removed: PR-5.2-dev
avatar Fedik Fedik - change - 1 Feb 2025
The description was changed
avatar Fedik Fedik - edited - 1 Feb 2025
avatar QuyTon QuyTon - alter_testresult - 3 Feb 2025 - degobbis: Tested successfully
avatar QuyTon QuyTon - alter_testresult - 3 Feb 2025 - dgrammatiko: Tested successfully
avatar QuyTon QuyTon - change - 3 Feb 2025
Status Pending Ready to Commit
avatar QuyTon
QuyTon - comment - 3 Feb 2025

RTC


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

avatar QuyTon QuyTon - change - 3 Feb 2025
Labels Added: RTC
avatar Hackwar
Hackwar - comment - 5 Feb 2025

I'm not exactly happy with this change. It feels a bit like change for changes sake and this is so widely used, that I don't see us removing this in 7.0.

avatar Fedik
Fedik - comment - 5 Feb 2025

That is why it extended from joomla 6 to joomla 7.

Anyway, it is going to happen in 7 or 8 or any time later.
Since joomla 4 we have to use web asset manager.

avatar dgrammatiko
dgrammatiko - comment - 5 Feb 2025

@Fedik @HLeithner @Hackwar @laoneo could you please figure out a path forward? Some people are totally against HTMLHelper others not. Make up your mind and document the decision.

avatar Fedik
Fedik - comment - 6 Feb 2025

Some people are totally against HTMLHelper others not.

It will not go anytime soon. It is fine feature.
It does not need for js/css, but there still many other usefull helpers that just cannot be replaced.

avatar laoneo
laoneo - comment - 6 Feb 2025

This is absolutely fine to deprecate them as loading assets should be done since 4 through the asset manager and not anymore HTMLHelper.

avatar HLeithner
HLeithner - comment - 8 Feb 2025

I would go one step further and move it to the b/c plugin (option in the plugin to active this or disable it).

avatar Fedik
Fedik - comment - 8 Feb 2025

I would not risk in 5.x, while HTMLHelper::_('script') is possible to make work with the b/c plugin, some extensions still use it improperly, like HTMLHelper::script()

avatar HLeithner
HLeithner - comment - 8 Feb 2025

Of course with 6.0 not with 5.x sorry not to mention it.

avatar laoneo laoneo - change - 11 Feb 2025
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2025-02-11 14:43:05
Closed_By laoneo
avatar laoneo laoneo - close - 11 Feb 2025
avatar laoneo laoneo - merge - 11 Feb 2025
avatar laoneo
laoneo - comment - 11 Feb 2025

Thanks!

Add a Comment

Login with GitHub to post a comment