rejetto forum

Sorting

0 Members and 1 Guest are viewing this topic.

Offline slasherx

  • Occasional poster
  • *
    • Posts: 98
    • View Profile
How can i set HFS to sort folders by Time/Date but keeps the files sorted by name in the folders.

Also how i can i set different default sorting for different folders?

Thanks


Offline Caco

  • Tireless poster
  • ****
    • Posts: 113
    • View Profile
I don't think HFS has this capability at the moment. You can only go in Other options/Default sorting and choose the default sorting method for the whole file system.

By the way , can someone tell me what is the "enable nodefault" option?


Offline slasherx

  • Occasional poster
  • *
    • Posts: 98
    • View Profile
i'm hoping it can be done with macros or something


Offline Caco

  • Tireless poster
  • ****
    • Posts: 113
    • View Profile
Well maybe you can achieve your goal using event scripts:

http://www.rejetto.com/wiki/index.php/HFS:_Event_scripts

You can try with [request] event .

I'm using rawr template 0.1.1. It provides links to display different sortings (name,date,requests...). This is done using "sort=" parameter in ".get" macro.


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13510
    • View Profile
How can i set HFS to sort folders by Time/Date but keeps the files sorted by name in the folders.

HFS itself can't do that.
The best way to get the result i can think of is using javascript.
at every [file] or [folder] you should actually put the data in an array,
then sort it as you like, and finally output it all.

> Also how i can i set different default sorting for different folders?

no clean way that i know.
but you can try by putting a hacking the urls of some folders by having the "?sort=X" appended.
not very nice, but can work.
« Last Edit: June 19, 2009, 02:33:08 PM by rejetto »


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13510
    • View Profile
By the way , can someone tell me what is the "enable nodefault" option?

http://www.rejetto.com/wiki/index.php/HFS:_Main_menu#Other_Options

i guess the description may be not very clear. largely improvable.