Right, now I know this one is simple, and I'm being a thicky.
We have a dropdown:
<select name="location">
<option value="1">City Centre</option>
<option value="2">City Suburbs / Business Parks</option>
<option value="3">Other small town</option>
<option value="4">And another small town</option>
<option value="5">Rest of County</option>
</select>
These directly map to the field "locations" which has been set up in the database. Locations is of type 'list'.
You can choose which location you want on the filter screen, and it will show you the properties for that location.
Now, excuse me for a minute here.
*wunch* *wunch* *wunch* *wunch*
Ok, thats better. That was me just banging my head on the desk.
How do I enable an "All Locations" option?
I tried adding
<option >All</option>
but that doesn't work. I seem to need to be able to simulate the Location parameter not being passed at all, as far as I can see, and I'm not sure how to do that.
I also considered using a magic number, e.g., -999, for the value, and trapping it on the list page, but then I realised that the filtering is kinda already done by the time I get to it, and it has already tried to find all locations with the location id -999, and got none.
Then my head imploded.
I have rifled through all the posts I can see, and checked out the latest CMS cookbook, but no joy.