We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 27179
    • 10 Posts
    bob1000 - Yes, I did change that last night, and double checked this morning, because I was really tired last night..

    Yeah work the same way as bittenbybooks.com were each form is independent of each other where it just filters by the one selected. Made it through the tvexplorer topic, and gonna read tveditor topic tonight, maybe some helpful hints.

    I also installed wordpress on another domain I have, wow, MODx is WAY better imo.

      • 27179
      • 10 Posts
      Fixed the error msg, seems there may have been a typo in it, found a complete BuildURL code chuck to completely replace the one in ditto, fixed the problem..finished both topics...

      saw something along the lines of what I need, but no clue really what to do..lol
      http://modxcms.com/forums/index.php/topic,16456.msg161907.html#msg161907

      the information I found on forms wasn’t really helpful either as it doesn’t deal with tveditor....i really need some programming exp..

      give it another go tomorrow...

      again thanks for all the help!
        • 3707
        • 241 Posts
        Maybe this can help. You might need to change a few parameters and other bits but it’s a start.

        Let’s say this is your document tree with doc id’s in brackets.

        -Books (14)
        --Book1 (16)
        --book2 (17)
        --Book3 (18)
        --...
        -Search results (15)

        I assume you have set up TV’s for Genre, Author, Reviewer and Age and applied values to your docs.

        First, you need to create your tvEditor call. You’ll need a separate call for each of your drop-downs. Because you want the search form to appear across multiple pages we’ll put it in a chunk but you could put it directly into the template.

        Create a chunk, call it {{searchBuilder}} and put in the following code (an example for Genre):

        {{searchBuilder}}
        [[tvExplorer? &tveID=`ge` &dittoName=`Ditto` &dittoSnippetParameters=`tpl:resultsTpl|parents:14|depth:0|display:all|sortBy:pagetitle|sortDir:ASC` &formTPL=`genreSearchTpl`]]
        [+ge_tve.searchForm+]

        &tveID=`ge` - because you’ll have multiple tvEditor calls, each one will require a unique ID.
        &dittoSnippetParameters - these are the parameters you are passing to Ditto to generate the results. To test if the Ditto part is working, you can place a normal Ditto call with those parameters in your chunk. So this example would be:
        [!Ditto? &parents=`14` &tpl=`resultsTpl` &depth=`0` &display=`all` &sortBy=`pagetitle` &sortDir=`ASC`!]

        tpl:resultsTpl - this is the template chunk used by Ditto to display the results.
        &formTPL=`genreSearchTpl` - this is the chunk containing the search form. It appears wherever you put the [+ge_tve.searchForm+] placeholder.

        Second, create your Ditto template chunk. This can contain whatever information you want to display:

        {{resultsTpl}}
        <h4><a href="[~[+id+]~]">[+title+]</a></h4>
        <p>[+bookimg+][+introtext+]</p>


        Third, create your search form chunk:

        {{genreSearchTpl}}
        <form id="ge-form" action="search-results.html" method="get" >
        <fieldset id="ge-fieldset">
        [+tve.genre:filter->9:label->Genre:tvtype->select:blankLabel->Genre+]
        </fieldset>
        <fieldset id="ge-buttons">
        <button type="submit" id="ge-button" name="ge_search" value="search">Search</button>
        </fieldset>
        </form>

        In this example I’ve included a search button. You can insert some javascript to automatically search.

        Fourth, insert the results list placeholder in your "search results" page or template. This will get replaced by the output from Ditto.

        [+ge_tve.dittoList+]

        You can then add a new tvExplorer call into the {{searchBuilder}} chunk for each of your drop-downs, using a unique ID and different &formTPL chunk for each. They can all use the same Ditto template chunk.
          • 27179
          • 10 Posts
          wow!

          I don’t have time this morning, but will get to work on it tonight, and this weekend.

          From what I was thinking I needed to do, it wouldn’t have worked looking at this code, didn’t realize how much has to be setup.

          Thx bob1000, I can’t wait to get to work on it
            • 27179
            • 10 Posts
            Well I tried the code, but there isn’t a dropdown box...there is a search button though, but it could be due to no real or sample reviews posted.

            Not really sure..will check into it more later, kinda burned out for now.

            http://howlinggoodbooks.com/index.php?id=8
              • 3707
              • 241 Posts
              The drop-down should appear even without sample reviews (it just won’t find anything) as long as your TV has been created correctly.

              Try calling tvExplorer uncached [!tvExplorer? ...!] or make sure the page you’re calling the snippet from is uncached.
                • 27179
                • 10 Posts
                i have searched high low for a script or something to help me out with this...all week...


                and i think i have given up, if i don’t have a solution by monday i am prolly gonna have to find another option or post a bounty for a solution..
                not really sure..

                  • 3707
                  • 241 Posts
                  I think the problem is with your TV. Could you post the details of your Genre TV or provide a screenshot.

                  If you feel comfortable with the idea, you could always create a temporary admin account and PM the details to me so I can have a look.