We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 11975
    • 2,542 Posts
    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

    :-)
      Made with MODx : [url=http://www.copadel.com]copadel, fruits et l
      • 7923
      • 4,213 Posts
      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."
        • 11975
        • 2,542 Posts
        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)

        :-)



          Made with MODx : [url=http://www.copadel.com]copadel, fruits et l
          • 18397
          • 3,250 Posts
          @heliotrope:

          In SVN versions of Ditto you can now add to the filters array using PHP in an extender. See the example extender for an example wink
            • 11975
            • 2,542 Posts
            Thank you so much Mark

            I will look at it tonight


            :-)
              Made with MODx : [url=http://www.copadel.com]copadel, fruits et l
              • 7923
              • 4,213 Posts
              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."
                • 11975
                • 2,542 Posts
                I thought I could finish today but yesterday night I had a party

                ... so I need rest today smiley

                I hope I could release it ASAP

                :-)
                  Made with MODx : [url=http://www.copadel.com]copadel, fruits et l
                  • 11975
                  • 2,542 Posts
                  Hi folks,

                  I’ve recently been able to merge tvexplorer feature and Ajaxserach (seraching features not yet the ajax part) to provide an advanced serach combining:
                  - full text
                  - multicriteria based on TVs
                  - Restrict the search to a folder by selecting it in a dropdown list

                  You can see it in action here

                  http://www.deco-in.com/recherche-avancee

                  I hope I could release the code in the weeks to be.


                  :-)

                  You can test with these settings

                  - mots clés: lampe lustre
                  - style: contemporain ancien
                  -couleur: rouge
                  -materiau : tissu

                  Add one after the other ;-)

                    Made with MODx : [url=http://www.copadel.com]copadel, fruits et l
                    • 7923
                    • 4,213 Posts
                    Yeah.. we’ve seen all the examples already.. now where’s the code!! j/k grin


                      "He can have a lollipop any time he wants to. That's what it means to be a programmer."
                      • 11975
                      • 2,542 Posts
                      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.

                      :-)
                        Made with MODx : [url=http://www.copadel.com]copadel, fruits et l