We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 6726
    • 7,075 Posts
    Great news I can’t wait to see that !

    Sorry I couldn’t be more helpful, I have my hands full right now with projects...
      .: COO - Commerce Guys - Community Driven Innovation :.


      MODx est l'outil id
      • 11975
      • 2,542 Posts
      Thx for you support david.

      You ’re one of the biggest fan of this module grin

      tveditor offers other nice features.

      Based on tve class, I’ve also written a snippet which aim is to render the name of the tv when you’re using name==value syntax

      :-)
        Made with MODx : [url=http://www.copadel.com]copadel, fruits et l
        • 7923
        • 4,213 Posts
        I’m eagerly awaiting this release too! Good job!


          "He can have a lollipop any time he wants to. That's what it means to be a programmer."
          • 11975
          • 2,542 Posts
          Thx doze for your interest in this module

          My main concern about a public release is that tve requires to install a lot of stuff.

          I have written an installer to deal with the required chunks (makeform class)
          and the module params.

          But there is also a
          - 1 phx:modifier ( I could change the installer to deal with this part)
          - 1 line to change in ditto class in buildUrl function
          - 2 new filters in ditto filter.class.php file
          and 1 extender

          :-)
            Made with MODx : [url=http://www.copadel.com]copadel, fruits et l
            • 7923
            • 4,213 Posts
            Can this tvExplorer be used in front end btw? Like as an advanced search snippet..


              "He can have a lollipop any time he wants to. That's what it means to be a programmer."
              • 11975
              • 2,542 Posts
              Of course it does wink

              I’m using a modified version of the tvexplorer snippet code in the module.

              But for now it doesn’t allow to search through text, textarea, richtext and number tv type.

              :-)
                Made with MODx : [url=http://www.copadel.com]copadel, fruits et l
                • 18397
                • 3,250 Posts
                "- 1 line to change in ditto class in buildUrl function
                - 2 new filters in ditto filter.class.php file
                and 1 extender"

                You can code filters in extenders. See the example extender. What line in the ditto class do you need to change and why?
                  • 11975
                  • 2,542 Posts
                  Hi mark,

                  here is the involved line (it has changed a bit in the latest ditto version, it’s almost the last line of the buildUrl(), my apologises for non posting the exact line but I don’t have acces to my source code tonight )
                  $url = $modx->makeURL($cID, ’’, $queryString);

                  My changes are as follows :

                  $url = (isset($modx->documentObject[’id’])) ? $modx->makeURL($cID, ’’, $queryString) : ’index.php?id=’.$GLOBALS[’modID’].$queryString;

                  I need the id param in the query string to execute the module in the manager.
                  I haven’t found a more elegant way to do it for now.

                  About the filters i will try to change my code to create an extender and that way allow peple using tveditor without changing their ditto files.


                  :-)

                  My main concern about filter is that in tveditor they are working by pair (does it make sense)
                  i had written a post about the way tvexplorer & tveditor are using filters.
                  I will post it here to give you more informations
                  here is a part of the post

                  tvExplorer will produce additionnal filters to insure a better results list.
                  To do so we will exclude from listings documents which have among their Tv values one of the unselected options

                  So filters will be
                  F1 : &filter:tvAppellation,ChateauNeuf du Pape,7|tvAppellation,Bourgogne,7|tvCouleur,Rouge,7|tvCouleur,Rosé,7|Categorie,Grand crû,7

                  OR

                  F2 : &filter:tvAppellation,ChateauNeuf du Pape,1|tvAppellation,Bourgogne,1|tvCouleur,Rouge,1|tvCouleur,Rosé,1|Categorie,Grand crû,1

                  + filters tvExplorer
                  => tvAppellation,Côtes du Rhone,2|tvAppellation,Bordeaux,2|tvCouleur,Blanc,2|Categorie,Vin AOC,2|Categorie,Vin de Pays,2|

                  we obtain the expected result:
                  Bourgogne wines OR Chateauneuf du pape AND Rouge OR Rosé AND Grand Crû

                  http://modxcms.com/forums/index.php/topic,11549.msg77853.html#msg77853

                    Made with MODx : [url=http://www.copadel.com]copadel, fruits et l
                    • 11975
                    • 2,542 Posts
                    After reading my post I think that’s not big deal about filters.
                    I will apply my new filter by default

                    In the Front end(tvexplorer snippet), people have the ability to define filterOn and filterOff in a config chunk

                    So please forget the part of my post forget about filters.

                    :-)
                      Made with MODx : [url=http://www.copadel.com]copadel, fruits et l
                      • 7923
                      • 4,213 Posts
                      is it possible to do a range query for some tv value in tvexplorer? like if user has a dropdown tv for year, is it possible to do a range search in tvexplorer for that tv where year is between some values?


                        "He can have a lollipop any time he wants to. That's what it means to be a programmer."