We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 28163
    • 10 Posts
    Hi,
    I had built a test site a year or so ago and have recently been asked by a client to continue with it.
    It’s built on MODX version 1.0.2

    We use TVEXPLORER / TVEDITOR to filter results and display them in a CHUNK which works perfectly. The Search Form does a
    <form action="[~15~]" method="post">
    , ID 15 being the Landing Page for the results. On this Landing Page there is a large image that originally was static and did not change however the client asked if this image could change every time the search was run.

    Now we have a folder on the server holding 6 images that rotate on the Landing Page using a little bit of php in a file called rotate.php which simply changes the image every time the page is refreshed or the search is run. Again, this working great!

    Now the client has asked if the images can match the Search results. For example, if a user searches for “Personal Finance” then the results page would have a relevant image. If a user searches for “Health and Beauty” then the results page again displays a relevant image to Health and Beauty.

    I know that it’s simple to specify an image in a template or even to rotate images in the template but does anyone know how to display images relevant to search results?

    Thanks in advance for your help.
    [ed. note: sperciva last edited this post 14 years, 8 months ago.]
      • 38494
      • 13 Posts
      are people writing in their search or are those words fixed & they just select them?

      if they're fixed, it should be super easy
        • 28163
        • 10 Posts
        Hi Kn00tcn,

        Thanks very much for your reply.

        Yes, the words are fixed in a dropdown list. There are 6 categories that a user can choose between from the dropdown.

        e.g. Personal Finance, Health and Beauty, Education and Employment and Clothing and Accessories.

        Thanks again for your help.
          • 28163
          • 10 Posts
          Hi Kn00tcn,

          Did you have a chance to think about the how to resolve the problem I'm having with tvExplorer?

          Thanks in advance for your help.