Feature #53130

Add direction to sorting of the cObject FILES

Added by Gernot Ploiner almost 4 years ago. Updated over 3 years ago.

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

100%

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

Duplicates Core - Bug #46444: "Sort Filelist" selection in "File Links" content element not working Resolved 2013-03-19
Precedes TypoScript Reference (TSref) - Task #53183: Document property "direction" for cObject FILES Resolved 2013-10-28

Associated revisions

Revision 200b13c9 (diff)
Added by Stefan Froemken almost 4 years ago

[FEATURE] Add DESC sorting for FILES-cObject

Add new property "direction" in sorting
to order fileObjects in reverse order

Documentation: #53183
Resolves: #53130
Releases: 6.2
Change-Id: I2b31d1ca3afb3738d267ed0de8e1c3ca791f0980
Reviewed-on: https://review.typo3.org/25023
Reviewed-by: Gernot Ploiner
Tested-by: Gernot Ploiner
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters

History

#1 Updated by Stefan Froemken almost 4 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

#2 Updated by Gernot Ploiner almost 4 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?

#3 Updated by Chris topher almost 4 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.

#4 Updated by Philipp Gampe almost 4 years ago

  • Status changed from New to Closed

Solved with #46444
Documentation will be added with #53147

#5 Updated by Gerrit Code Review almost 4 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

#6 Updated by Gerrit Code Review almost 4 years ago

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

#7 Updated by Gerrit Code Review almost 4 years ago

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

#8 Updated by Gernot Ploiner almost 4 years ago

Please also add this function:
sorting = date
Thank you

#9 Updated by Stefan Froemken almost 4 years ago

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

#10 Updated by Chris topher almost 4 years ago

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

#11 Updated by Rafal Brzeski over 3 years ago

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

Also available in: Atom PDF