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
    Hi all,

    a little update about tvExplorer

    i’ve setup a new demo online

    http://dixsix.fr/explorer/index.php?id=406


    [!tvExplorer?
    &startID=`20`
    &formID=`testImmo`
    &chunkExtra=`extraForm`
    &dittoName=`DittoBeta02`
    &depth=`5`
    &selectTV=`typeVente,typeBien,secteurImmo`
    &dittoTpl=`testPHX`
    &summarize=`3`
    &debug=`0`
    &sortBy=`typeVente`
    &sortDir=`ASC` !]

    Some explanations about some params
    &selectTV = list of TVs included in the search form
    &dittoName = ditto snippet name

    Placeholders for search form and result listing


    [+tve.searchForm+]
    nb documents:[+total+]
    [+dittoList+]
    Page [+currentPage+] of [+totalPages+]
    [+previous+] [+pages+] [+next+]

    Some settings can be overwritten in an &extraChunk
    Syntax => tv_name::property_name==property_value

    typeBien::question==Quel type de bien recherchez vous: ::filter==1
    typeVente::filter==7::question==Vous recherchez un bien
    secteurImmo::filter==7::question==Choisissez un secteur

    this version uses ditto 2.0
    I had to tweak a little bit some of the code but nothing important and doesn’t affect the snippet usage.

    :-)

    another demo is available here http://dixsix.fr/explorer (more docs : 374)
      Made with MODx : [url=http://www.copadel.com]copadel, fruits et l
      • 33337
      • 3,975 Posts
      Umm, I guess I can’t understand what is "tvExplorer" for? same for "tvEditor"... tongue Can you please elaborate on it a bit?

      thanks.
        Zaigham R - MODX Professional | Skype | Email | Twitter

        Digging the interwebs for #MODX gems and bringing it to you. modx.link
        • 2762
        • 1,198 Posts
        I really love it.. kiss

        .. you don’t know how much work i’ve done to have something similiar in any websites..
          Free MODx Graphic resources and Templates www.tattoocms.it
          -----------------------------------------------------

          MODx IT  www.modx.it
          -----------------------------------------------------

          bubuna.com - Web & Multimedia Design
          • 11975
          • 2,542 Posts
          Here is a post in which there are the full features of both tveditor and tvExplorer.
          http://modxcms.com/forums/index.php/topic,9810.msg67445.html#msg67445

          tvEditor allows you to edit TVs options without writing the MODx syntax (==|| )
          When an existing option value is updated all documents with this value for this TV are updated accordingly.
          It also offers the ability to sort the tv options value.

          tvExplorer create forms for searching on several Tvs, it renders automatically tv Type and options
          Fillters are written on the fly and passed to ditto.

          :-)
            Made with MODx : [url=http://www.copadel.com]copadel, fruits et l
            • 33337
            • 3,975 Posts
            Did you say tvExplorer is like "Advanced Search" for MODx? shocked

            ..and tvEditor for MODx backend to manage TVs...

            Incredible!

            How the heck I missed that post! *zi banging his head into wall*
              Zaigham R - MODX Professional | Skype | Email | Twitter

              Digging the interwebs for #MODX gems and bringing it to you. modx.link
              • 11975
              • 2,542 Posts
              It’s something like advanced search on TVs.

              the only matters is that it cannot search through document object properties.
              For now most of tv type are managed except (files, images, date, numbers, textarea)

              Let’s take an example: http://dixsix.fr/explorer/

              TV1: Appellation (checkbox)
              options values: Bordeaux, Côtes du Rhône, Bourgogne, Chateauneuf du pape

              TV2: Couleur (listbox-Multiple)
              options values: Rouge, Rosé, Blanc.

              TV3: Categorie(select)
              options values: Vin de Pays, Vin AOC, Grand crû.


              If we are seraching wines with ChateauNeuf du Pape (AND) Rouge,(AND) Grand crû

              Filters will be:
              F1 : &filter:tvAppellation,ChateauNeuf du Pape,7|tvCouleur,Rouge,7|&Categorie,Grand crû,7
              ou
              F2 :&filter:tvAppellation,ChateauNeuf du Pape,1|tvCouleur,Rouge,1|&Categorie,Grand crû,1
              in both case tagMode is "onlyTags"

              Now we’d like to go further and search the wines:
              ChateauNeuf du Pape OR Bourgogne (AND) Rouge OR Rosé (AND) Grand crû
              Filters F1 et F2 won’t produce satisfying results
              we’ll get wines from ChateauNeuf du Pape OR Bourgogne (OR) Rouge OU Rosé (AND) Grand crû
              we find in the results listings :
              bordeaux rouges grands crus,  bordeaux rosés grands crus, Côtes du Rhône rosés grands crus et Côtes du Rhône rouges grands crus althought we were seraching only ChateauNeuf du pape OR Bourgogne.


              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û

              :-)

              Of course all filters are written by tvExplorer itself.

                Made with MODx : [url=http://www.copadel.com]copadel, fruits et l
                • 23491 ☆ A M B ☆
                • 1,056 Posts
                Jaw hits floor.... Spectacular!
                  Mike Reid - www.pixelchutes.com
                  MODx Ambassador / Contributor
                  [Module] MultiMedia Manager / [Module] SiteSearch / [Snippet] DocPassword / [Plugin] EditArea / We support FoxyCart
                  ________________________________
                  Where every pixel matters.
                  • 7923
                  • 4,213 Posts
                  Is the tvExplorer available for download somewhere?


                    "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,

                    Not yet it’s still alpha and requires ditto 2 for better performance.
                    It’s based on tveditor classes so I need to update the installation process of the module to insert in db the tvexplorer chunks.

                    I ’m currently working on it to fix small bugs.
                    I hope releasing a first internal beta tomorrow.

                    :-)
                      Made with MODx : [url=http://www.copadel.com]copadel, fruits et l
                      • 11975
                      • 2,542 Posts
                      Sorry for the delay but I’ve extended the features.
                      tvExplorer now supports @BINDINGS

                      I should release the new version of both tveditor and tvexplorer in a few days.

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