23471 Posts in 18941 Topics by 2878 members
|Go to End|
4 November 2009 at 3:16am
I'm trying to use SilverStripe as a listing/search for car parts at a scrap yard. I'm new to SilverStripe for this kind of application so I'd like to know the proper way to model this.
Each part has a make and model of the car it belongs to. I have these stored as relations to Make and Model objects so the client can add/remove new makes/models. I want people to be able to filter makes and models with the drop down in the search form on the frontend but I can't seem to find a way to modify the search form fields for a related object to be anything beyond a text input. I've noticed that db fields of type Enum behave this way (with a dropdownfield) but an Enum is clumsy when I have 100's of models to list.
5 November 2009 at 6:38pm
There are many search types available, it really depends on how you want to filter them.
If you want to get fancy, create a search context to get very specific
You can work people up to their search by stepping them up
1. Ask for make
2. Store make in sessoin
3. If Make is set, present dropdown for Model
6 November 2009 at 10:18am
Please forgive me for sounding needy, but I'm interested to see how you get this working. I just started an attempt to create a search using search context (http://silverstripe.org/general-questions/show/272699?showPost=272699), but I am lost on how to continue. Your solution can either help or address yet another type of search I need to implement on my current project.
|Go to Top|