Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8544589
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T12:35:50+00:00 2026-06-11T12:35:50+00:00

Using ditto I have created a product catalogue. I now wish to add search

  • 0

Using ditto I have created a product catalogue. I now wish to add search and filtering options. Would anyone know the best way to do this? I cannot seem to find a good plugin.

I am running ModX Evolution 1.0.6

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T12:35:51+00:00Added an answer on June 11, 2026 at 12:35 pm

    I gave up and made my own if anyone’s interested:

    Updated with full code

    Please feel free to ask me to clarify anything or add changes or improvments.

    Note there is one problem that I must fix – that you cannot combine the TV’s serach terms to make a very definitive search. I will still work on this

    //TV FILTERS
    $sql = 'SELECT DISTINCT `contentid` FROM `modx_site_tmplvar_contentvalues`';
    $where = array();
    //ADD THE VARIABLES YOU WANT TO SEARCH TV's WITH BELOW
    if ($searchlocation !== 'Any') $where[] = '`value` LIKE "%'.$searchlocation.'%"';
    if ($searchmake !== 'Any')  $where[] = '`value` LIKE "%'.$searchmake.'%"';
    if ($searchtype !== 'Any') $where[] = '`value` LIKE "%'.$searchtype.'%"';
    if (count($where) > 0) {
      $sql .= ' WHERE '.implode(' OR ', $where);
    } else {
      // OPTIONAL
      // Error out; must specify at least one!
    }
    
    $tvqresult = mysql_query($sql);
    $num_rowstvq = mysql_num_rows($tvqresult);
    while ($rowtvq = mysql_fetch_array($tvqresult)) {
    $contid =  $rowtvq['contentid'];
    
    //MAIN QUERY RETRIEVES RESOURCE - TEMPLATE LIMITS SEARCH TO PARTICULAR TYPE THAT WILL BE USED IN DITTO
    $mainsql = 'SELECT * FROM `modx_site_content` WHERE `id` = ' . $rowtvq['contentid'] . '  AND `template` = 12';
    
    $resultmain = mysql_query($mainsql);
    $num_rowsmain = mysql_num_rows($resultmain);
    if (!$resultmain) {
    continue;
    }
    elseif ($num_rowsmain == 0){
    echo "Sorry - nothing matches your search";
    }
    
    else {
    while ($row = mysql_fetch_array($resultmain )) {
      echo "[[Ditto? &parents=`134` &documents=" . $row['id'] . " &tpl=`usedtempchunk`]]";
    }//END MAIN LOOP
    
    }//END MAIN ELSE
    
    }//END TV WHILE LOOP
    ?>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

using this http://bl.ocks.org/950642 we can see how to add images to nodes, the question
Using RestKit 0.10.1, I have objects served similar to this json format: {objects: [
(using jquery or just js) Is it possible to add script to an iframe
i am using android 3.0 actionbar with a dropdown and a searchWidget. I would
Using MATLAB, you have to start with a uniform distribution between (0,1). You need
I installed Sinatra using RubyGems, created a simple file called hello.rb file contains: require
Using The Play Framework how easy would it be to allow an admin user
Using SSRS 2008 R2 I have a background process that dynamically generates RDL for
Using Sax ActiveX Scripting (long story), I have 3 nested if statements which reuse
Using Java, assuming v1.6. I have a collection where the unique index is a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.