You are here:  » Filter problem


Filter problem

Submitted by damer on Fri, 2006-08-18 21:40 in

Hi I seem to have a slight problem using filters.

lets say i have a feed with a buy_url but no image_url... but the product id within the buy_url can be used to create an image url (by using split after and text after filters). So I use the same feed field for both the buy_url and image_url database fields in the feed registration. The only problem is the filter is for some reason being applied to the feed field and altering the data for both the image_url and the buy_url (not just the image_url - which is where the filter is being applied).

I hope I explained this correctly.

Thanks.

Submitted by support on Fri, 2006-08-18 21:51

Hi,

Yes - I understand the issue - the filters write directly to the value of the registered field - not a copy.

I think the easiest way to handle this would be if your feed has an empty field that you can register as the Image URL. Then, create a Text After filter using a placeholder to write in the value of the Buy URL, for example "%DEEPLINK%" (without the quotes).

Then you can do the same modification as before but on the new field and then it would not overwrite the Buy URL. If you don't have an empty field that you can use; there may be one that can be made empty using another filter (search and replace for example).

A bit convoluted but it should work!
Hope this helps!
David.