-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[5.4] mod_articles - Show field "Show Article Images" also if introtext is truncated #45969
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Don't you think this will confuse people? |
It seems people are expecting to be able to display the images inserted in text ... and at the same time truncate the introtext. |
the problem occurs when the truncating takes place and excludes the image and they think its broken I'm with you
and would say if you want the images then either use the readmore and dont truncate or use the intro_image field you can't please all the time |
That is true... |
I have tested this item ✅ successfully on 492491d This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/45969. |
I have tested this item ✅ successfully on 492491d This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/45969. |
RTC This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/45969. |
Final test before merge with JBT graft nightly build / full package:
|
Thank you @drmenzelit for your contribution. Thank you @brianteeman for your support. Thank you @exlemor and @ChristineWk for testing. |
Pull Request for Issue #45833 .
Summary of Changes
If I remember correctly, in my first version of mod_articles I used the truncate function that removes html-tags, that is why it was necessary to display the field "Show Article Images" only if the introtext was not truncated.
That was changed in further modification of the module, but we forgot to check the field again.
Now I changed the module so the field "Show Article Images" always displays when the introtext is set to "show" no matter of the characters limit set.
Testing Instructions
Create an article with an image in text
Create an articles module, set "Introtext" to "Show", the field "Show Article Images" is displayed.
Play with the characters limit and check if article image is showing (or not).
Actual result BEFORE applying this Pull Request
The field "Show Article Images" only appears when the characters limit for the introtext is set to 0 (deactivated)
Expected result AFTER applying this Pull Request
The field "Show Article Images" is displayed when "Introtext" is set to "Show". If the article's image is inside the characters limit, it will be displayed in the module.
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