Hey all,
I'm looking for some feedback/guidance on how to do a multiple parameter search. For example, I want to find a model rocket. The search I'm presented with has rocket size, cost, type, level, etc. I want to be able to enter every parameter and have it return results based on my selections. I guess this could be considered an advanced search or catalog search.
The problem is what's the best way to pursue this? Do I create a custom db table or should I make each "rocket" it's own resource and use TVs as the options? What is the ideal solution vs. quick 'n' dirty solution? I've seen several possible solutions, but if there is an add-on out there that makes sense to use I don't want to create one on my own.
Any feedback is appreciated.
What version of MODX?
In any event, I would not use TVs for this unless there will be very few rockets. Otherwise it's going to get fairly slow.
If it's Revolution, I would use ClassExtender to extend modResource. That will automatically put the rocket info in a custom table where each row corresponds to a particular resource (the page for that rocket), and thus an individual rocket. Searching and sorting will be very fast and you can enter the values on the Create/Edit resource page. You can easily display the custom data on a rocket's page with placeholders.
I would put them into a custom - table and would create a CMP with MIGXdb
For searching and filtering, you can use migxLoopCollection
In my experience, the searching and storage of the info are the easy part. The difficult part is designing a user interface for people to enter the search criteria.
There's an example of a + or - keyword search here:
http://wordsmatter.softville.com/quotes.html
-
☆ A M B ☆
- 24,524 Posts
"This page allow you to search"?
Quote from: sottwell at Sep 01, 2014, 03:27 AM"This page allow you to search"?
LOL. That mistake has been there for years. Fixed.