Project

General

Profile

Actions

Feature #78619

closed

Epic #83669: Improve file list / file browser

Filename-length in tree changeable

Added by Mike Streibl about 8 years ago. Updated over 5 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 )}

Actions #1

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

Actions #2

Updated by Mike Streibl almost 8 years ago

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

Actions #3

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

Actions #4

Updated by Riccardo De Contardi almost 7 years ago

  • Parent task set to #83669
Actions #5

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

Actions

Also available in: Atom PDF