Project

General

Profile

Actions

Feature #53130

closed

Add direction to sorting of the cObject FILES

Added by Gernot Ploiner about 11 years ago. Updated about 7 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
TypoScript
Target version:
Start date:
2013-10-25
Due date:
% Done:

100%

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

Description

At the Moment there is no possibility for sorting Files with TypoScript with the new cOject FILES.

The old way offers this possibility. See last option 'name' in this Example:
10 = TEXT
10.filelist = fileadmin/files|gif,jpg,png|name

That would also be great for the new cObject FILES. Example:
10 = FILES
10.folders = 1:files/
10.orderBy = name

Other great sorting fields would be: date and size
Also options for ASC/DESC and alphabetic/numerous would be great.


Related issues 1 (0 open1 closed)

Is duplicate of TYPO3 Core - Bug #46444: "Sort Filelist" selection in "File Links" content element not workingClosed2013-03-19

Actions
Actions #1

Updated by Stefan Froemken about 11 years ago

  • Target version set to 6.2.0

Hello Gernot,

I have just checked the source-code of this cObject and found a setting called "sorting".
Following snippet works for me:

page.1 = FILES
page.1 {
  folders = 1:user_upload/images/examples/
  sorting = size
  renderObj = IMAGE
  renderObj {
    file.import.data = file:current:uid
    file.maxW = 100
  }
}

But for now there is no implementation for ASC and DESC.

Stefan

Actions #2

Updated by Gernot Ploiner about 11 years ago

This Option is not avaliable in the TSREF Documentation and also not in the Help-Dropdown in the Setup-Field...
But perhaps with TYPO3 6.2 in December 2013?

Actions #3

Updated by Chris topher about 11 years ago

Stefan Froemken wrote:

Hello Gernot,

I have just checked the source-code of this cObject and found a setting called "sorting".
Following snippet works for me:

When has this property been added and why is it not documented in TSref currently?

Please provide the needed information in #53147: description, data type and default value so that I can document that one.

And tell me, ''when'' it has been added.

Actions #4

Updated by Philipp Gampe about 11 years ago

  • Status changed from New to Closed

Solved with #46444
Documentation will be added with #53147

Actions #5

Updated by Gerrit Code Review about 11 years ago

  • Status changed from Closed to Under Review

Patch set 1 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/25023

Actions #6

Updated by Gerrit Code Review about 11 years ago

Patch set 2 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/25023

Actions #7

Updated by Gerrit Code Review about 11 years ago

Patch set 3 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/25023

Actions #8

Updated by Gernot Ploiner about 11 years ago

Please also add this function:
sorting = date
Thank you

Actions #9

Updated by Stefan Froemken about 11 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #10

Updated by Chris topher about 11 years ago

  • Subject changed from Possibility for sorting for new cObject FILES to Add direction to sorting of the cObject FILES
Actions #11

Updated by Rafal Brzeski almost 11 years ago

What about sorting by "Date"?
Whether this option has also been added to the flexform?

Actions #12

Updated by Riccardo De Contardi about 7 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF