Support Forums

Listing Filter and State + City

This is a discussion on Listing Filter and State + City within the TemplateCodes forums, part of the Third Party Support category; I've read the threads on being able to use city AND state as a filter and am wondering if there ...


Go Back   68 Classifieds Forums > Third Party Support > TemplateCodes

This topic is closed.

This topic is closed to new replies.

 
Thread Tools Display Modes
Old 05-04-2010, 03:13 PM   #1
Customer
 
Join Date: Feb 2007
Posts: 69
Rep Power: 20
sbhkma is on a distinguished road
Default Listing Filter and State + City

I've read the threads on being able to use city AND state as a filter and am wondering if there is ANY way to make this happen. Client wants this to function so that you can select State / City to view listings, not just filtering to State level. If anyone has done this or has any ideas, please let me know.
sbhkma is offline  
Old 05-04-2010, 03:56 PM   #2
All Hands On Deck
 
 
Join Date: Mar 2008
Posts: 3,316
Rep Power: 82
seymourjames is a jewel in the rough
Default

The listing filter works one one variable, namely states (you can rename that) or an extra field. What you are requesting is a second filter.
__________________
"The fool doth think he is wise, but the wise man knows himself to be a fool.".

TemplateCodes.com for 68C, Version 4 Templates & Modules
Get the Best U.S Hosting, Best U.K Hosting
seymourjames is offline  
Old 05-04-2010, 04:02 PM   #3
Customer
 
Join Date: Feb 2007
Posts: 69
Rep Power: 20
sbhkma is on a distinguished road
Default

That's what I thought.
If I add a field called "location" I imagine I could filter by THAT, correct? I am however unclear as to how to change the ListingFilter from its default "state" to another field. I've looked at the docs that came with it and it's not very thorough in that regard. How do I go about changing that?
sbhkma is offline  
Old 05-04-2010, 04:21 PM   #4
TemplateCodes
 
TemplateCodes-Mike's Avatar
 
Join Date: Apr 2010
Posts: 41
Rep Power: 6
TemplateCodes-Mike is on a distinguished road
Default

From the instructions text:
/**
* Override the default filtering by state with an extra field, put the fields
* id in place of 0 if you want to enable searching by an extra field versus the
* users registration data.
*
* Please note that this extra field must be a select option, as there is no
* other extra field that enables you to create a list of filterable options.
* These will be used to populate the popup as well as being filtered against.
*/

$data['module']['lfilter_field'] = '0'; //'0' default, integer extra field id

So get the extra field id from the administration extra fields and put the number in.
The code is from the templatecodes module file around line 156.

yoursite/modules/templatecodes/config.php
__________________
TemplateCodes - Complete 68 Classifieds solutions and more
TemplateCodes-Mike is offline  
Old 05-04-2010, 04:28 PM   #5
Customer
 
Join Date: Feb 2007
Posts: 69
Rep Power: 20
sbhkma is on a distinguished road
Default

Perfect. Thank you!
sbhkma is offline  
Old 05-04-2010, 04:32 PM   #6
TemplateCodes
 
TemplateCodes-Mike's Avatar
 
Join Date: Apr 2010
Posts: 41
Rep Power: 6
TemplateCodes-Mike is on a distinguished road
Default

We're here to help and I'm sincerely glad I was able to help you.

Thank you for pointing out an opportunity to improve our support. That is appreciated!
__________________
TemplateCodes - Complete 68 Classifieds solutions and more
TemplateCodes-Mike is offline  
Old 05-27-2010, 01:35 AM   #7
Ageless Member
 
Bronxgodzilla's Avatar
 
Join Date: Jun 2008
Posts: 133
Rep Power: 15
Bronxgodzilla is on a distinguished road
Default

The Listing Filter has a great magnitude of possibilities. Thanks for adding even greater clarity and application, Mike. Much appreciated!

Barry G
__________________
Currently using Latest version v4.1.10 Developer with latest Templatecodes Sigma (The Greatest)
Bronxgodzilla is offline  
Closed Thread

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Search Results by city, state or zip LittleRascal Technical Support 2 02-27-2010 07:40 PM
Including the city and state on Recent Listing page LittleRascal Technical Support 1 06-21-2009 01:13 AM
New listing in main content to contain city and state LittleRascal Technical Support 1 06-13-2009 01:29 AM
City, state and country hel68c Technical Support 2 06-08-2008 04:07 PM


All times are GMT -4. The time now is 06:24 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2011, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0