Display Options -> Introtext Limit - set it to 5
The introtext should be cut after 5 characters, followed by the three points
Although there is introtext, in some cases no characters are shown
Joomla 5.2rc1, PHP 8.2
There is HTML Text in front of the text
Labels |
Added:
No Code Attached Yet
|
Labels |
Added:
Release Blocker
|
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2024-10-02 20:12:20 |
Closed_By | ⇒ | Quy |
Status | Closed | ⇒ | New |
Closed_Date | 2024-10-02 20:12:20 | ⇒ | |
Closed_By | Quy | ⇒ |
One problem arises when the text limit ist too small. Then the truncate method cannot find a space in the text and offset is empty. No text is displayed at all.
If the limit for the introtext is big enough so that at least one space is in the truncated text, then it works. Not the exact number of characters, but near enough for human reading.
A quick solution could be:
Add a description to the label of text-limit that the number is not exact value but varies with spaces between words.
Add a rule that the text-limit must be >= 50 then probably every language has at least one space in the text. In real life it does not make sense to show only 6 characters of an intro text.
Does the readmore limit behave differently here to its other uses elsewhere? I suspect not
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2024-10-04 13:09:07 |
Closed_By | ⇒ | Quy |
Does the readmore limit behave differently here to its other uses elsewhere? I suspect not
It is the same method, probably in real life nobody sets limit so small as we did in these tests. I can test tomorrow with readmore in other situations.
Labels |
Removed:
Release Blocker
|
If I do:
I get:
So more characters than expected.