Create a limitbox xml form field. Add append="35,40,45,55,60,65,70,75,80,85,90,95" to the options
Those numbers are appended to the available options.
Instead they are appended with the letter 'J" in front of the number on the text of the dropdown. The value appears correct.
Joomla 5.3.1
This appears to come from libraries/src/Form/Field/LimitboxField.php line 95. As I write this, I realize that this is for number language strings.
if (!empty($limits)) {
foreach ($limits as $value) {
$options[] = (object) [
'value' => $value,
'text' => ($value != 0) ? Text::('J' . $value) : Text::('JALL'),
];
}
static::$options[$hash] = array_merge(static::$options[$hash], $options);
}
Maybe either add that to the documentation, which just says to provide a comma separated string, or better yet add an optional attribute like:
append_translate true/false with a default value. I have to make a dozen extra language strings that seem unnecessary for most, but not all purposes.
Labels |
Removed:
?
|
Labels |
Added:
No Code Attached Yet
|
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2025-06-12 10:30:16 |
Closed_By | ⇒ | richard67 |
Closing as having a pull request. Please test #45598 . Thanks in advance.