Feature #78619
closedEpic #83669: Improve file list / file browser
Filename-length in tree changeable
0%
Description
The filename length is hard-coded in the Template.
This could be changeable in the installtool-settings.
At the moment it is:
{file.name->f:format.crop( maxCharacters:30 )}
Updated by Mike Streibl about 8 years ago
The value is in typo3/sysext/filelist/Classes/FileList.php:
/** * Max length of strings * * @var int */ public $fixedL = 30;
and in typo3/sysext/filelist/Resources/Private/Templates/FileList/Search.html:
{file.name->f:format.crop( maxCharacters:30 )}
Updated by Mike Streibl almost 8 years ago
I think it would be better, to use css (text-overflow: ellipsis) for that.
Updated by Riccardo De Contardi over 7 years ago
On latest master (8.7.1-dev):
- typo3/sysext/filelist/Classes/FileList.php still contains the lines cited on the previous comment
- ypo3/sysext/filelist/Resources/Private/Templates/FileList/Search.html has no more the f:format.crop
viewhelper
Updated by Susanne Moog over 5 years ago
- Status changed from New to Closed
It's not hardcoded in either place anymore - in Search as Riccardo already noted the crop is gone, in the FileList itself the 30 is the fallback if it's not configured in the user settings to a different value. Every user can configure the length as to her preferences in the user settings (title length).