rejetto forum
May 24, 2012, 11:08:53 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: This forum is free, you do NOT need to register to post. But you may.
PROBLEMS? QUESTIONS? CLICK HERE!
Fill the survey!
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Address line with some operators  (Read 2768 times)
0 Members and 3 Guests are viewing this topic.
kpuk
Occasional poster
*
Offline Offline

Ukraine Ukraine

Posts: 13


View Profile Email
« on: November 14, 2007, 02:53:32 AM »

How right wrote this line
<a href="http://%host%%encoded-folder%?recursive&sort=t&page=1&limit=20">View New Files</a>
It must show first 20 new files by date, but i think one ore more operators does not work.
Correct for me does pliz.
Logged
Mars
Operator
Insane poster
*****
Offline Offline

France France

Posts: 1481



View Profile WWW
« Reply #1 on: November 14, 2007, 06:09:23 AM »

hello rejetto it's good idea to add  a new line parameter NEW to use like ?recursive&new to see only  files according with %new%
Logged
Foggy
Insane poster
*****
Offline Offline

Australia Australia

Posts: 806


View Profile
« Reply #2 on: November 14, 2007, 06:41:15 AM »

with all the new filters lately we cant skip what mars is proposing.
Logged
rejetto
Administrator
Insane programmer
*
Offline Offline

Italy Italy

Posts: 11829


View Profile
« Reply #3 on: November 14, 2007, 12:42:10 PM »

the "new" filter is accepted.

the sort=t may work or not.
it is based on the timestamp of the file on disk.
if the file was created 1 year ago, but added today, it will report the old timestamp.

Follow members gave a thank to your post:

DNA1010

For this post, 1 member gave a thank you!
Logged
kpuk
Occasional poster
*
Offline Offline

Ukraine Ukraine

Posts: 13


View Profile Email
« Reply #4 on: November 14, 2007, 03:08:15 PM »

See:
I use, as example, hfs for library in my local network
And have deep directory structure, that wery need subj.
If you sort=t and one file located at /Scientific/phisics/radiophisics/journal and next file located at /popular/fantasy/some_autor/some_other_folder etc.
It wery Inconveniently.

ps: sorry for my english
Logged
rejetto
Administrator
Insane programmer
*
Offline Offline

Italy Italy

Posts: 11829


View Profile
« Reply #5 on: November 14, 2007, 05:30:34 PM »

inconvenient? what/why/where?
Logged
rejetto forum
« Reply #5 on: November 14, 2007, 05:30:34 PM »

Do you like this software? Consider even $2
 Logged
kpuk
Occasional poster
*
Offline Offline

Ukraine Ukraine

Posts: 13


View Profile Email
« Reply #6 on: November 15, 2007, 01:34:47 AM »

I wrote upper where inconvenient =)
Logged
rejetto
Administrator
Insane programmer
*
Offline Offline

Italy Italy

Posts: 11829


View Profile
« Reply #7 on: November 15, 2007, 09:25:44 AM »

href="?recursive&sort=t&page=1&limit=20&folders-filter=\"

you don't need to specify the rest of the address
Logged
kpuk
Occasional poster
*
Offline Offline

Ukraine Ukraine

Posts: 13


View Profile Email
« Reply #8 on: November 15, 2007, 09:48:43 AM »

rejetto - You the best of the best =)
It works fine.
Where i can read about folders-filter=\  ??

Add:

Now i test that string href="?recursive&sort=t&page=1&limit=20&folders-filter=\" and find troublre:
Hfs sort by date only first 20 files which it find.
It let me think that first execute "page=1&limit=20" then "="?recursive" and last one "sort=t"
Bug or not?

ps: sorry for my english
« Last Edit: November 15, 2007, 10:32:08 AM by kpuk » Logged
rejetto
Administrator
Insane programmer
*
Offline Offline

Italy Italy

Posts: 11829


View Profile
« Reply #9 on: November 15, 2007, 11:04:39 AM »

yeah, you are right, but that's what it is meant to do.
it sorts the first 20 files found. it's not a bug.
the other way would be, find 10'000 files, sort them, and keep only first 20. clearly this is much more slow.

i would surely leave the first method, but i may introduce the other one through another parameter.
Logged
rejetto
Administrator
Insane programmer
*
Offline Offline

Italy Italy

Posts: 11829


View Profile
« Reply #10 on: November 15, 2007, 11:13:47 AM »

Where i can read about folders-filter=\  ??

in the documentation
www.rejetto.com/wiki/index.php?title=HFS:_Address_operators
Logged
kpuk
Occasional poster
*
Offline Offline

Ukraine Ukraine

Posts: 13


View Profile Email
« Reply #11 on: November 15, 2007, 12:32:45 PM »

Ok, i finish ask aboun "Show new files"
if You do this it been great. I am not leave are hope. (is it right wrote in English?)
Logged
rejetto
Administrator
Insane programmer
*
Offline Offline

Italy Italy

Posts: 11829


View Profile
« Reply #12 on: November 15, 2007, 01:00:08 PM »

i already added it to the to-do-list
Logged
bacter
Operator
Insane poster
*****
Offline Offline

Spain Spain

Posts: 679


View Profile
« Reply #13 on: November 15, 2007, 01:26:06 PM »

Rejetto:
In the preference of execution of parameters I think the first thing to execute should always be select (with some filter or search , considering if recursive is present) and after that sort and at last formatting( page, limit..), even if the user places them in another order.

First select, then sort, that's a lot faster!
Logged

your computer has no brain - use your own !
Mars
Operator
Insane poster
*****
Offline Offline

France France

Posts: 1481



View Profile WWW
« Reply #14 on: November 15, 2007, 01:39:45 PM »

bacter

The order of the parameters is not important, the execution is made in hfs in a very precise order chosen beforehand
The list is created according to filters and rights and the organization is later made
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!


Google visited last this page May 08, 2012, 05:20:12 AM
anything