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,

    first of all, sorry for not helping you as I would like but I’m missing time.

    About your questions, you cannot add filter to the dittoSnippetParams.
    It won’t be executed as far as I remember the code.
    You should test by adding an hidden field in your form.

    You should send me credentials to log into your website.
    And I’d need a mock up of what you want to achieve.

    :)
      Made with MODx : [url=http://www.copadel.com]copadel, fruits et l
      • 19975
      • 429 Posts
      hi heliotrope,

      thanks for offering to help, greatly appreciated smiley do you have a MSN account, maybe I could send you the details via messenger or would an email be best? I have the visuals and details in a PDF file if this would help

      thanks, smiley
        Martin Sanders - Design & Web Development
        • 11975
        • 2,542 Posts
        Sorry no MSN account (mac user wink )
        You can send me the login details and files to my email (look at your MPs)

        :)
          Made with MODx : [url=http://www.copadel.com]copadel, fruits et l
          • 19975
          • 429 Posts
          just now sent smiley thanks
            Martin Sanders - Design & Web Development
            • 12941
            • 87 Posts
            When I search for the zip, it sometimes works, and sometimes it produces other zip codes in the search results. There does not seem to be any pattern? I made the TV for the zip code a number.

            Also, I am having an issue with the general keyword search. If I add anything other than includeTVs, it will make my form completely disappear. I would also like to remove the "Keyword" label, but if I try to put the blank label param or just a label param that’s empty, it disappears.


            Here is my search form:
              <div class="search-wrapper"><!--search-wrapper-->
                        	<h3>Find Properties</h3>
                        	<div class="search"><!--search-->
            <form action="search-results.html" method="get" >
                            <h4>Property Type</h4>
                            [+tve.property_type+]
                            <div class="hr"><hr /></div>
                            <h4>Location</h4>
                            [+tve.property_city:class->input+]
                            [+tve.property_state:class->input+]
                            [+tve.property_zip:class->input+]
                            Within <input name="" type="text" size="4" class="input" value="10" /> miles.
                            <div class="hr"><hr /></div>
                            <h4>Agent</h4>
                           [+tve.property_agent:class->input+]
                           
                            <div class="hr"><hr /></div>
                            <h4>Quick Search</h4>
            [+tve.keywordsSearch:includeTVs->all+]
            <!--<input name="" type="text" class="input" size="20" />-->
             <div class="hr"><hr /></div>
                             <input name="search" type="image" value="search" src="{{image_path}}/search.png" />
            </form>
                            </div><!--search-->
                        </div><!--search-wrapper-->
            


            tvExplorer snippet call:
            [!tvExplorer? &dittoName=`Ditto` &dittoSnippetParameters=`tpl:tve-dittoTPL|depth:5|parents:2|display:10` &formTPL=`search2`!]
            
            [+tve.searchForm+]


            Search Results page w/ditto snippet call:
            <p>[!tvExplorer? &dittoName=`Ditto` &dittoSnippetParameters=`tpl:tve-dittoTPL|depth:5|parents:2|display:10` &formTPL=`search2`!]</p>
            <h3>Total Listings: [+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>
            
              • 7690
              • 166 Posts
              How do you make a keyword search?
              a box where you can type a word and ditto will search through the whole document.
              All the other things work perfectly.


              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?
                • 11975
                • 2,542 Posts
                Hi,

                I’ll be away for the next 3 weeks so I will not support anybody during my holidays smiley

                @DNA
                Have a look at [tve.keywordsSearch+] tag.
                To display result without submitting you’ll need to change some of the code of the snippet.
                Not big deal.

                :)
                  Made with MODx : [url=http://www.copadel.com]copadel, fruits et l
                  • 7690
                  • 166 Posts
                  thanks smiley
                  It’s now up and running.

                  Have a nice vacation.
                    • 19383
                    • 10 Posts
                    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?
                      ---------------------------------------------------
                      (PS: sorry for my "GoogleTranslator" english laugh )
                      • 7455
                      • 2,204 Posts
                      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
                        follow me on twitter: @dimmy01