I’ve never tested this kind of filtering but I think that should work
For instance let’s say that you seraching archives from 1999 to 2002
the filter should look something like : ( as I don’t remember the figure in filter.class, i will use 3 for >= and 4<=)
filter=`myDate:2002:3|myDate:1999:4`
you could easily do it with tvexplorer in the front end (not yet in the backend)
You ’ll have to write in your config chunk
myDate::filterOn==3::filterOff==4
:-)
perhaps I misunderstood your question
To determine a range, we need two dropdown
1/ from
2/ to
Is that correct ?
i will think about that once I have released the next beta
Could you provide me an example of what you d like to achieve
:-)
i’ll write short as i’m on a mobile currently. You understood my question correctly, but as i dont know yet how tvexplorer works i might have wrong idea how it would be done. What i mean is simply this: document has a tv that stores a number, how you would do a search form what looks for the documents where the tv value is between some values? And yes, there would need to be from-to fields in tvexplorer form.
"He can have a lollipop any time he wants to. That's what it means to be a programmer."
In this current version tvexplorer will not be able to handle such query.
This will require some changes in the code to allow custom form elements
at this stage of the dvpt tve only renders the tv type, I could overwritte the type according settings in config chunk and implement specific behaviour such as "range".
But how will the form element will be feed to determine the range? (the values of each dropdown)
You ’ll have to write the option values of these elements in the config chunk.
Perhaps we could imagine something like
myDate->range[1999,2000,2001,2002]::filterOff==3::filterOn==4
and then tve would create the two dropdown.
As I do not use regexp at all I would need some help to parse the form chunk (but that could be possible without regexp)
:-)
Thank you so much Mark
I will look at it tonight
:-)
Any estimation when some version of tvExplorer will be available?
"He can have a lollipop any time he wants to. That's what it means to be a programmer."
Yeah.. we’ve seen all the examples already.. now where’s the code!! j/k
"He can have a lollipop any time he wants to. That's what it means to be a programmer."
Hi doze,
I’ll be glab to send you the current code.
Perhaps you could lend me a hand on the js part of the module.
Let me know if you wish to get the current version.
Some work remains but 90% of the features are complete.
:-)