Plugin Author
Fabian
(@fabifott)
Since Version 0.2.9.29, DataTables should be sorted acording to the shortcode paramenter “sort”, for example: [wpfilebase tag=list tpl=data-table sort=’>file_size’ /]
If its not working, whats the URL of your page?
The site is still under developpement, so I protected with plugin “Site Pin”. But I’ll disable it for you right now, your plugin is SO MUCH important for me.
I’ve tested sorting with different parameters but…:-(
Actually, the page uses the following short code :
[wpfilebase tag=list id=5 tpl=data-table sort=’>file_name’ num=100 /]
Site url : http://www.fnisci.net/?page_id=248
Menu : PUBLICATIONS –> CIRCULAIRES et NOTES
– WordPress 3.5.0 (waiting to update…)
– WP-Filebase 0.2.9.34 (waiting to update…)
– Many other plugins using JQuery (no conflict, all updated)
Note: In a unique page, I use plugin GT Tabs to display each file category in a different tab. For example : 2013, 2012, 2011…
BTW, I’ve forgotten to thank you very much for your reply… 🙂
Plugin Author
Fabian
(@fabifott)
You can only sort by properties that are actually listed.
Since your list template uses %file_display_name% (and not %file_name%), the shortcode should be:
[wpfilebase tag=list id=5 tpl=data-table sort=’>file_display_name’ num=100 /]
If you want to sort by %file_name%, you have to add the column for it to the file template:
<td>%file_name%</td>
Yesssssssssss!! It works !! It was so simple in fact.
Thank you very very very much my friend !
I’m marking this topic as Resolved