Looking for Recommended packages - search bar

Good morning all,

I have a page using pdoResources to create a list. The list might become very long so I’d like the visitor to be able to have a search bar that would filter the results without navigating away from the page.

What are some search bars that can do this function and you’d recommend? Thank you in advance!

The only way I can think of to do this would be to pass the value of the search input’s contents to a snippet that would construct a ‘where’ clause for pdoResources, call pdoResources with $modx->runSnippet(), and return the results.

Maybe someone else knows an easier way.

1 Like

That sounds pretty involving and I think I may have found an easier way (or at least well documented)

I played around with this search bar a bit and I rather like it, it seems very flashy and functional


That looks like a better solution than mine. You might also look into ExtJS/modExt which is available in MODX and has some nice built-in features for filtering by columns as you see in the Manager.

1 Like

I’ve used the JQuery plugin “Select2” before to great effect. It’ll let you pull results via AJAX so not everything is loaded up front. Although perhaps that is what you want.

1 Like

Look at the following Javascript plugins to create HTML tables or lists that can be sorted, searched, filtering, paging, etc.

Create tpls to format the output as required by the selected plug in, add the JS and the client end can handle the functionality.

I am might switch them to Bootstrap Table. Seems to work faster with large datasets and has Bootstrap, Zurb Foundation, and more CSS styling available.


1 Like

Other suggestions include

Here are some projects I am working on that use a JS plugin


(Sorry- I had to split this into 3 posts due to limit of 2 links per post. I wanted to suggest all four options and give examples)

1 Like