We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 19383
    • 10 Posts
    nice.. thx laugh
      ---------------------------------------------------
      (PS: sorry for my "GoogleTranslator" english laugh )
      • 19383
      • 10 Posts
      Quote from: Dimmy at Sep 07, 2009, 07:36 AM

      The way I did this is to start with a ditto call with the filter options and use phx to see if the placeholder has content if so no ditto call :

      <div id="zoekfilter">
      [[tvExplorer? &dittoSnippetParameters=`parents:6|tpl:ditto_aanbod_tpl1|tplAlt:ditto_aanbod_tpl2|displayArchive:0|summarize:all|total:all|sortBy:prijs|sortDir:ASC` &dittoName=`Ditto` &formTPL=`tve`]]
      [+tve.searchForm+]
      </div>
      <div id="zoekResultaten">
      [+phx:if=`[+tve.dittoList+]`:is=``:then=`[!Ditto? &parents=`6` &tpl=`ditto_aanbod_tpl1` &tplAlt=`ditto_aanbod_tpl2` &filter=`prijs,5000,6` &sortBy=`prijs` &sortDir=`ASC` &displayArchive=`0` &summarize=`all` &total=`all`!]`+]
      [+tve.dittoList+]
      </div>
      


      Dimmy

      Hi again,

      it works .. but i have now a problem with the pagination. It shows always the number of all pages .. even though I’ve only found 2 pages (or nothing) ...



      ... Has anyone another solution for this problem? (show content without searching anything)

      thx
        ---------------------------------------------------
        (PS: sorry for my "GoogleTranslator" english laugh )
        • 19383
        • 10 Posts
        No idea? sad


        
        [[tvExplorer?  &dittoName=`Ditto` &formTPL=`elv_searchform` &dittoSnippetParameters=`debug:0|parents:2|summarize:6|paginate:1|paginateAlwaysShowLinks:1|trunc:1|truncLen:76`]]
        
        [+phx:if=`[+tve.dittoList+]`:is=``:then=`[[Ditto? &parents=`2` &tpl=`tpl_urteil` &summarize=`6` &trunc=`1` &paginateAlwaysShowLinks=`1` &paginate=`1`  &truncLen=`76`]]`+]
        
        [+tve.dittoList+]
        
        


        phx call with [!Ditto?: Doesnt work
          ---------------------------------------------------
          (PS: sorry for my "GoogleTranslator" english laugh )
          • 33372
          • 1,611 Posts
          Quote from: modix at Sep 06, 2009, 06:26 PM

          Quote from: DNA at Jul 17, 2009, 05:35 AM

          Also, when i go to the page without searching anything. The page is empty. Only when i click "SEARCH", all the items are displayed.
          How to make it all visible in default?

          i have the same problem .. how did you solve it?

          I just add this to the top of the tvExplorer snippet:
          $_REQUEST['search']='Search';
            "Things are not what they appear to be; nor are they otherwise." - Buddha

            "Well, gee, Buddha - that wasn&#39;t very helpful..." - ZAP

            Useful MODx links: documentation | wiki | forum guidelines | bugs & requests | info you should include with your post | commercial support options
            • 19383
            • 10 Posts
            laugh Thanks
              ---------------------------------------------------
              (PS: sorry for my "GoogleTranslator" english laugh )
              • 4971
              • 964 Posts
              I am just starting with tvExplorer using Evo 1.0 and I do not get any results...

              This is my call in the content area of page 9:
              [[tvExplorer? &formTPL=`formPlayers` &dittoName=`Ditto`  &dittoSnippetParameters=`tpl:tplDittoPlayers|depth:1|parents:9|display:10|paginate:1|debug:1`]] 
              [+tve.searchForm+]
              <h3>nb documents: [+total+] </h3>
              <div id="ditto_list" > [+tve.dittoList+] </div>
              <p class="ditto_pagination">Page <strong> [+currentPage+] </strong> of <strong> [+totalPages+] </strong></p>
              <p class="ditto_pagination"> <span id="ditto_pages"> [+previous+] [+pages+] [+next+] </span></p>
              




              This is my formPlayers template chunk:
              <form action= " [~[*9*]~] “method= "get” >
              
              <fieldset>
              [+tve.keywordsSearch:excludeTVs->all:label->Custom+]
              <br />
              [+tve.prLastName:filter->9+]
              <br />
              [+tve.prClass:filter->9+]
              <br />
              [+tve.prPosition:filter->9+]
              </fieldset>
              
              <fieldset class= "sendForm" >
                  <input type= "submit" name= "search" value= "Search"/>
              </fieldset>
              
              </form>
              


              Just a basic one to test, it show perfect on the #9 document.


              This is my tplDittoPlayers template chunk:
              <span>Surname: [+prLastName+]</  br>
                          Name: [+prFirstName+]</br>
                          Height: [+prHeight+]</span>
              


              Also a basic one for testing, it will look like a spreadsheet when everything is done.


              I can go to the form and select the filter parameters that come from the Tvs,
              but when I click search it does not work it goes to my home page.

              The development site is in a subdirectory of my hosting account where my main
              website is in. I have friendly-URLs turned on both in my site and in the development
              site. My site uses MODx 0.9.6.3 and the new site Evo 1.0.

              When I hover over the Search button I can read the following...
              Destination: www.mydomain.com/NEWSITE/%5B~~%5E%20%E2%80%9Cmethod=


              What am I doing wrong?
              Where is my error?
              Help appreciated!
                Website: www.mercologia.com
                MODX Revo Tutorials:  www.modxperience.com

                MODX Professional Partner
                • 3707
                • 241 Posts
                You need to correct this line in your form chunk:
                <form action= " [~[*9*]~] “method= "get” >


                Change [~[*9*]~] to [~9~] and fix both closing quotes so they use the correct character. You end up with:
                <form action="[~9~]" method="get" >
                  • 4971
                  • 964 Posts
                  bob1000 thanks for the reply, I had corrected the quotes appropriately.
                  Changed to [~9~] but it does not work...

                  But we are getting close, now when I hover over the search button I get:
                  Destination: www.mydomain.com/NEWSITE/players.html/%E2%80%9C%20method=


                  EDIT 1:
                  OK, E2 80 9C in UTF-8 is ", so no, I had not fixed the quotes appropriately...
                  they are fixed now and the button points to the right direction now:
                  Destination: www.mydomain.com/NEWSITE/players.html


                  but still it does not work, it takes me to my home page...

                  EDIT 2:
                  Friendly-URLs were not working, so I turned them off and included in the
                  form the hidden input statement.
                  Now it takes me to the home page of the development website, but still
                  no results...
                    Website: www.mercologia.com
                    MODX Revo Tutorials:  www.modxperience.com

                    MODX Professional Partner
                    • 3707
                    • 241 Posts
                    If you go to that page directly, it redirects to your home page. Have you checked the permissions on that page?

                    Can you view any pages at www.mercologia.com/NEWSITE/ ?
                      • 4971
                      • 964 Posts
                      Yes, I can see the other pages...
                      I turned off friendly-URLs because tvExplorer was sending to /players.html
                      and the site was working as /index.php?id=9

                      Now it sends me to the home page of the development site /FHNA, not my home page...
                      but it is not redirecting other pages... mmm...
                        Website: www.mercologia.com
                        MODX Revo Tutorials:  www.modxperience.com

                        MODX Professional Partner