extra feed filter
Submitted by henk on Sat, 2007-02-10 16:27.Price Tapestry
Hi
I like to have 2 more fields to filter that is model en fabrikant in the admin.
Is that possible?
Thx
Henk
Support forum loginActive forum topics©2006-2010 IAAI Software |
extra feed filterSubmitted by henk on Sat, 2007-02-10 16:27.Price Tapestry
Hi I like to have 2 more fields to filter that is model en fabrikant in the admin. Thx |
Hello Henk,
You'll need to make changes in:
admin/feeds_filters.php
admin/feeds_filters_configure.php
Each of those scripts has a section that populates an array that is used to construct the field select box; where each line looks like this:
if ($feed["field_name"]) $fields[$feed["field_name"]] = "Product Name (".$feed["field_name"].")";You would need to add lines like this for each of your new fields; for example:
if ($feed["field_model"]) $fields[$feed["field_model"]] = "Model (".$feed["field_model"].")";if ($feed["field_fabrikant"]) $fields[$feed["field_fabrikant"]] = "Fabrikant (".$feed["field_fabrikant"].")";
Then you should see you new fields in the drop down list. Don't forget to make these changes in both files...!
Cheers,
David.