Feature #78619

Epic #83669: Improve file list / file browser

Filename-length in tree changeable

Added by Mike Streibl over 5 years ago. Updated about 3 years ago.

Status:
Closed
Priority:
Could have
Assignee:
-
Category:
File Abstraction Layer (FAL)
Target version:
-
Start date:
2016-11-09
Due date:
% Done:

0%

Estimated time:
PHP Version:
Tags:
Complexity:
Sprint Focus:

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 )}

#1

Updated by Mike Streibl over 5 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 )}

#2

Updated by Mike Streibl over 5 years ago

I think it would be better, to use css (text-overflow: ellipsis) for that.

#3

Updated by Riccardo De Contardi about 5 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

#4

Updated by Riccardo De Contardi over 4 years ago

  • Parent task set to #83669
#5

Updated by Susanne Moog about 3 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).

Also available in: Atom PDF