User tests: Successful: Unsuccessful:
Pull Request resolves #47335 .
When 'Use Global' is selected for Image Class in the Articles
module, the global value was not being applied to the figure tag.
The code was checking if float_intro was empty, but 'Use Global'
is not empty — it's a literal string. Fixed by also checking if
the value equals 'Use Global' and fetching the actual global
value in that case.
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 | ⇒ | Repository Administration com_admin SQL |
| Labels |
Added:
PR-5.4-dev
|
||
| Category | Repository Administration com_admin SQL | ⇒ | Layout |
Thank you for the feedback @brianteeman!
I have updated the base branch to 6.1-dev and confirmed
the AI policy check. Sorry for the confusion!
| Labels |
Added:
PR-6.1-dev
Removed: PR-5.4-dev |
||
I have tested this item 🔴 unsuccessfully on 88533a7
Same behaviour using Pull Request.
I have tested this item 🔴 unsuccessfully on 88533a7
Same behaviour using Pull Request.
I have tested this item 🔴 unsuccessfully on 88533a7
Cannot find anywhere to "Set Image Class" anywhere in the article module.
I have tested this item 🔴 unsuccessfully on 88533a7
Cannot find anywhere to "Set Image Class" anywhere in the article module.
@Chitrakshi180706 - Hi Chitrakshi, thank you so much for your contribution and proposal of this PR to fix Issue 47335 unfortunately, we could NOT find the Image Class in the Articles Module.
@cybersalt @exlemor you misunderstood. There is a setting for the articles component to set the default image class
In an article you will see that you can either use that global setting or change it for that article
However when the article is displayed in a module this image class (either custom or global) is not used.
Having said all of that
@cybersalt @exlemor you misunderstood. There is a setting for the articles component to set the default image class
In an article you will see that you can either use that global setting or change it for that article
However when the article is displayed in a module this image class (either custom or global) is not used.
Having said all of that
@cybersalt @exlemor you misunderstood. There is a setting for the articles component to set the default image class
In an article you will see that you can either use that global setting or change it for that article
However when the article is displayed in a module this image class (either custom or global) is not used.
Having said all of that
@cybersalt @exlemor you misunderstood. There is a setting for the articles component to set the default image class
In an article you will see that you can either use that global setting or change it for that article
However when the article is displayed in a module this image class (either custom or global) is not used.
Having said all of that
"Use Global" is never stored as a literal string. float_intro is a type="text" field with useglobal="true"
(administrator/components/com_content/forms/article.xml:751). For text fields useglobal only renders a placeholder hint (TextField.php:245), the stored
value is an empty string. So $images->float_intro === 'Use Global' is dead code. It would also break on non-English sites, since that string is translated.
Sorry, but this PR doesn’t make sense because a) it doesn’t solve the problem, b) it would then also need to be adapted for fullimage, and c) it’s better to resolve this in ArticlesHelper.php around Line 411.
I am therefore closing this PR @HLeithner.
| Title |
|
||||||
| Status | Pending | ⇒ | Closed |
| Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2026-07-17 13:13:25 |
| Closed_By | ⇒ | HLeithner | |
| Labels |
Added:
Updates Requested
|
||
Your branch is 6.1 but you are trying to merge it into 5.4
And you must complete the ai check confirmation