Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
txp:file_download_list sort by date
[ no worries its fixed – I used sort=“id desc” ]
Is it possible to do this?
If not – whats the best work around – thanks
Last edited by tye (2007-10-09 13:39:04)
Offline
#2 2007-10-09 14:01:49
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: txp:file_download_list sort by date
Doesn’t sort="created"
work? It doesn’t say so in TextBook, but ‘created’ is a table column (and so is ‘modified’).
Offline
Re: txp:file_download_list sort by date
Yes it does :) Great thanks… so how did you find this – by looking at the database?
Offline
Re: txp:file_download_list sort by date
thanks els! i took the liberty of adding the ‘created’ attribute to the textbook
Offline
#5 2007-10-10 17:48:15
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: txp:file_download_list sort by date
tye wrote:
so how did you find this – by looking at the database?
Yes. As far as I know you should be able to use every column name in the sort attribute, at least that is my experience so far.
iblastoff: if my assumption is right, you can add a lot more to several tags in TextBook ;)
Last edited by els (2007-10-10 17:52:36)
Offline
Re: txp:file_download_list sort by date
When most tags support the “sort” attribute, you can usually sort in various directions with multiple columns. E.g. sort=“created desc, name”
Offline
Re: txp:file_download_list sort by date
Thanks… very interesting and something I will look into more… to be honest, being more of a designer than coder – I haven’t even looked at the txp database.
Offline
#8 2007-10-15 01:51:17
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: txp:file_download_list sort by date
That’s correct, you can sort by all the column names in the table. They’re just listed in Textbook manually for quick reference.
Offline
Pages: 1