Feature RTC PBF PR-5.1-dev Pending

User tests: Successful: Unsuccessful:

avatar hans2103
hans2103
13 Dec 2023

Pull Request for no Issue
This PR replaces #40618
After solving the merge conflicts there are just too many changed files.

Summary of Changes

This PR will change the hard coded <img src=""... inside the default view of mod_banners by a call to JLayout joomla.html.image and keeps it DRY.

Testing Instructions

  • Joomla 5 with testing sample data. (adjust mod_banners config and unset the chosen client, otherwise you don't see images... #40616)
  • Go to frontend index.php/banners

Actual result BEFORE applying this Pull Request

You will see a banner image on the page.

Expected result AFTER applying this Pull Request

You will see a banner image on the page. The same as BEFORE. The HTML output is also the same as BEFORE.
The only difference is that it is rendered by JLayout which allows users to create an override.

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 hans2103 hans2103 - open - 13 Dec 2023
avatar hans2103 hans2103 - change - 13 Dec 2023
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 13 Dec 2023
Category Unit Tests Repository Administration com_admin com_banners com_categories com_contact com_fields
avatar hans2103 hans2103 - change - 14 Dec 2023
Labels Added: Unit/System Tests PR-5.1-dev
avatar joomla-cms-bot joomla-cms-bot - change - 14 Dec 2023
Category Unit Tests Repository Administration com_admin com_banners com_categories com_contact com_fields Modules Front End
avatar Quy Quy - test_item - 15 Dec 2023 - Tested successfully
avatar Quy
Quy - comment - 15 Dec 2023

I have tested this item ✅ successfully on a1ba0fa


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

avatar brianteeman
brianteeman - comment - 15 Dec 2023

The only difference is that it is rendered by JLayout which allows users to create an override.

Am I being daft here but you could always create an override for the module output. But now if you want to create an override then it will impact not just the image layout in the module but everywhere that the image layout is being used.

avatar hans2103
hans2103 - comment - 3 Jan 2024

The only difference is that it is rendered by JLayout which allows users to create an override.

Am I being daft here but you could always create an override for the module output. But now if you want to create an override then it will impact not just the image layout in the module but everywhere that the image layout is being used.

isn't that great?
The JLayout perfect spot to implement a cdn for images.
It is up to the JLayout how images should be rendered, not the module.
The module should forward the information to the JLayout to render the image.

avatar ufuk-avcu ufuk-avcu - test_item - 24 Feb 2024 - Tested successfully
avatar ufuk-avcu
ufuk-avcu - comment - 24 Feb 2024

I have tested this item ✅ successfully on a1ba0fa


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

avatar richard67 richard67 - change - 24 Feb 2024
Labels Added: Feature PBF
Removed: Unit/System Tests
avatar richard67 richard67 - alter_testresult - 24 Feb 2024 - Quy: Tested successfully
avatar richard67 richard67 - alter_testresult - 24 Feb 2024 - ufuk-avcu: Tested successfully
avatar richard67 richard67 - change - 24 Feb 2024
Status Pending Ready to Commit
avatar richard67
richard67 - comment - 24 Feb 2024

RTC


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

avatar reDimDev reDimDev - test_item - 24 Feb 2024 - Tested successfully
avatar reDimDev
reDimDev - comment - 24 Feb 2024

I have tested this item ✅ successfully on 0b6155a


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

avatar hans2103 hans2103 - change - 26 Feb 2024
Labels Added: RTC
avatar bembelimen bembelimen - close - 28 Feb 2024
avatar bembelimen bembelimen - merge - 28 Feb 2024
avatar bembelimen bembelimen - change - 28 Feb 2024
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2024-02-28 21:36:37
Closed_By bembelimen
avatar bembelimen
bembelimen - comment - 28 Feb 2024

Thanks

Add a Comment

Login with GitHub to post a comment