We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 26931
    • 2,314 Posts
    Thank you heliotrope, thank you Zap,

    i just wanted to check that i’m not missing something working with tvExplorer for a project smiley

    cheers, j
      • 7319
      • 21 Posts
      Hi Heliotrope,

      this Snippet seems to be THE must have for any bigger site and Im very thankful for the hard work youve put in it. I have a problem getting it to work though. The form wont show up, no matter what I do. I dont even get an error. Im sure I have overlooked something very stupid, but I cant figure out what it is.

      Here is my form Template ("searchFormular"):

      <form action="[~[*id*]~]" method="get" >
      <fieldset>
      [+tve.bundesland:filter->7+]
      </fieldset>
      <fieldset class="sendForm">
      <input type="submit" name="search" value="Search" />
      </fieldset>
      </form>


      here is my Ditto template ("dittoTemplate")

      <h3 class="ditto_pageTitle"><a href="[~[+id+]~]">[+pagetitle+]</a></h3>  
      <p>[+bundesland+]</p>


      and here my tvx call

      [!tvExplorer? &dittoName=`Ditto` &dittoSnippetParameters=`tpl:dittoTemplate|depth:5|parents:0|display:10` &formTPL=`searchFormular`!]


      I need this Snippet to work really bad, since this is the most important functionality and the deadline is near smiley

      Another question: would it be possible to let the formbuilder from the backend generate the code for the front end tvx call? So that it would be a true from Builder for search forms? Not that I demand it, but it would be really cool to visually build those forms in the backend and just copy the generated call to the document where its supposed to appear.

      Take care,
      Sebastian
        • 11975
        • 2,542 Posts
        Hi,

        you have to write after your call the searchForm placeholder and also the result list one.

        [+tve.searchForm+]
        [+tve.dittoList +]
        Another known issue is Phx related.
        If you have the plugin enabled, make your call cached and uncache the page where the snippet is called.

          Made with MODx : [url=http://www.copadel.com]copadel, fruits et l
          • 7319
          • 21 Posts
          Thanks for the quick answer.
          Ive only forgot to copy it to my post sorry, so I already did that and it wont work. the complete call I have
          [!tvExplorer? &dittoName=`Ditto` &dittoSnippetParameters=`tpl:dittoTemplate|depth:5|parents:0|display:10` &formTPL=`searchFormular`!]
          [+tve.searchForm+]
          [+tve.dittoList+]


          I dont have Phx installed.

          Thanks.

            • 7319
            • 21 Posts
            Ok I got it working now. But I have antother question smiley Is it possible to show the search results on a different page? Like the search results page for ajaxSearch? this would allow to have a searchbox with a given height and width on the frontpage and the searchresults on a special page for the results.

            Happy easter everybody (I know, Im late on that one) wink

              • 33372
              • 1,611 Posts
              SUre. Just replace the id in your form tag on the front page with the docID of your landing page. So if that’s say 66 your form template code would start with:

              <form action="[~66~]" method="get">
                "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
                • 7319
                • 21 Posts
                Thanks ZAP, easy and working laugh This Snippet is so awesome....
                  • 24393
                  • 83 Posts
                  i’ve managed to get tvExplorer working pretty well, however i just ran into some trouble... i am making a wine finder, like some of the examples, so hopefully i am on the right track.

                  here is my form :

                  <fieldset>
                  	[+tve.country:filter->7+]       
                  </fieldset>
                  <fieldset>
                  [+tve.type:tvtype->dropdown:label->Style:elements->@Chunk stylelist:filter->9+]
                  </fieldset>
                  <fieldset>
                  [+tve.price:#RANGE{tvtype->dropdown:label->Low Price:elements->@Chunk prices:filter->3}+]
                  </fieldset>
                  <fieldset>
                  [+tve.price:#RANGE{tvtype->dropdown:label->High Price:elements->@Chunk prices:filter->4}+]
                  </fieldset>
                  <fieldset>
                  [+tve.keywordsSearch+]
                  </fieldset>


                  the first and last fieldsets display fine, however...
                  the second fieldset displays but has no options. i am trying to "search" a text input tv with a predefined list of terms.
                  the third fieldset does not display at all

                  is something like this possible with tvExplorer?


                    stevesunderland.com
                    GRAPHICS | INTERACTIVE | MARKETING
                    xhtml + ajax + seo websites powered by modx
                    • 11975
                    • 2,542 Posts
                    Hi,

                    try with:

                    <fieldset>
                    [+tve.country:filter->7+]
                    </fieldset>
                    <fieldset>
                    [+tve.type:tvtype->dropdown:label->Style:elements->@Chunk stylelist:filter->9+]
                    </fieldset>
                    <fieldset>
                    [+tve.price:#RANGE{tvtype->dropdown:label->Low Price:elements->@Chunk prices:filter->3||tvtype->dropdown:label->High Price:elements->@Chunk prices:filter->4}+]
                    </fieldset>
                    <fieldset>
                    [+tve.keywordsSearch+]
                    </fieldset>

                      Made with MODx : [url=http://www.copadel.com]copadel, fruits et l
                      • 19975
                      • 429 Posts
                      Hi, I’m new to TVExplorer so apologies if this question has already be answered.

                      I have three TVs each with a different value, the search will need to look at all three values and return a result based on the value matched. The search should show items with a value less than, so I need to filter results to only display items with a select template with a any of the TVs value with less than.

                      I have scripted the following code:

                      [[tvExplorer? &dittoName=`Ditto`&formTPL=`pressform`&dittoSnippetParameters=`filter:template,19,1|parents:64|depth:4|debug:1`]]
                      [+tve.searchForm+]
                      <h3>[+total+]</h3>
                      [+tve.dittoList+]


                      The code should filter out all other templates to only show template id 19, unfortunately this fails to work

                      <form action="[~[*id*]~]" name="tvExplorer" id="tvExplorer" method="get">
                        [+tve.keywordsSearch:tvtype->text:filter->5:includeTVs->all+]
                      <fieldset class="sendForm">   
                         <input id="tve_search" name="search" value="Search" type="submit">
                      </fieldset>
                      </form>


                      I would like to only search the TV1 TV2 and TV3. How would i code this?

                      I’ve been playing with tvExplorer for the last couple of days but am quite stumped with this, any help very welcome smiley

                        Martin Sanders - Design & Web Development