Feature #53130
closed
Add direction to sorting of the cObject FILES
Added by Gernot Ploiner about 11 years ago.
Updated about 7 years ago.
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.
- 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
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?
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.
- Status changed from New to Closed
Solved with #46444
Documentation will be added with #53147
- Status changed from Closed to Under Review
Please also add this function:
sorting = date
Thank you
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
- Subject changed from Possibility for sorting for new cObject FILES to Add direction to sorting of the cObject FILES
What about sorting by "Date"?
Whether this option has also been added to the flexform?
- Status changed from Resolved to Closed
Also available in: Atom
PDF