rejetto forum

Filelist recursive sorting

Teroan · 3 · 3379

0 Members and 1 Guest are viewing this topic.

Offline Teroan

  • Occasional poster
  • *
    • Posts: 2
    • View Profile
Is there way to get the filelist to sort and recurse just like in normal templates using url parameters?

Below parameters works as expected in normal templates.
Code: [Select]
?sort=t&recursive
For filelist, below parameters don't appear to work.
Code: [Select]
?tpl=list&sort=t&recursive
Also is there any documentation how to use "tpl" parameter? Curious if it allows to set the template via url param.

Any help is appreciated! Thanks in advance.
« Last Edit: March 07, 2010, 05:46:45 PM by Teroan »


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13510
    • View Profile
welcome!

that was a bad design choice.
i opted to prevent the filelist to be sortable.
that was an improper way to avoid useless heavy actions.
i think anyway the template (or the user) should be able to decide by themselves to sort or not.

this will break a little few templates (like the default one) that don't care to clear the "sort" parameter when requiring the list.
i will fix the default template, but anyone who customized it will have to apply manually. and this sucks, but i guess it must be done.

you will have to wait for build #258 to be published.

Also is there any documentation how to use "tpl" parameter? Curious if it allows to set the template via url param.

there's not other use for the tpl parameter at the moment. It's just an incipit for what will come. ;)
« Last Edit: March 08, 2010, 11:58:57 AM by rejetto »


Offline Teroan

  • Occasional poster
  • *
    • Posts: 2
    • View Profile
Thanks for the reply!

I'll keep my eye on the next release and thanks again for this awesome lil program. :)