Support Forums

Filter On Extra field

This is a discussion on Filter On Extra field within the TemplateCodes forums, part of the Third Party Support category; One of our forum members wanted to filter not on location but on an extrafield. The listing filter is capable ...


Go Back   68 Classifieds Forums > Third Party Support > TemplateCodes

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 12-26-2009, 09:44 PM   #1
All Hands On Deck
 
 
Join Date: Mar 2008
Posts: 2,947
Rep Power: 72
seymourjames is a jewel in the rough
Default Filter On Extra field

One of our forum members wanted to filter not on location but on an extrafield. The listing filter is capable of doing this with a little tweak to the code. I thought it worth posting for all to see:

Override the default filtering by location 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.

Find this line in modules/templatecodes/config.php and replace the zero with the id of your extrafield.

$data['module']['lfilter_field'] = '0';
__________________
"The fool doth think he is wise, but the wise man knows himself to be a fool.".

TemplateCodes.com for 68 Classifieds
seymourjames is offline   Reply With Quote
 

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
V4.1.x Extra Field Filter pipelin Modules / Plugins / Modifications 4 12-12-2009 06:20 PM
Create a extra field just like the price field ? mirway7 Technical Support 3 10-13-2009 12:27 AM
Change format in "date field" extra field topbidz Technical Support 2 05-01-2008 08:38 PM


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


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