You are here:  » extra feed filter

Support Forum



extra feed filter

Submitted by henk on Sat, 2007-02-10 16:27 in

Hi

I like to have 2 more fields to filter that is model en fabrikant in the admin.
Is that possible?

Thx
Henk

Submitted by support on Sun, 2007-02-11 09:42

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.