Feature #53130
closedAdd direction to sorting of the cObject FILES
100%
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.
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
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?
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.
Updated by Philipp Gampe about 11 years ago
- Status changed from New to Closed
Solved with #46444
Documentation will be added with #53147
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
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
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
Updated by Gernot Ploiner about 11 years ago
Please also add this function:
sorting = date
Thank you
Updated by Stefan Froemken about 11 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 200b13c91dbacdb0dfd0fcffd0f7767caffe63d3.
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
Updated by Rafal Brzeski almost 11 years ago
What about sorting by "Date"?
Whether this option has also been added to the flexform?
Updated by Riccardo De Contardi about 7 years ago
- Status changed from Resolved to Closed