You are here:  » Search and replace

Support Forum



Search and replace

Submitted by redspark on Fri, 2010-10-22 08:14 in

Hi David,

I have tried to do a search and replace on category level. On certain categories i dont want to use the Main catagory but the subcategory. I have tried to use a placeholder like %SUBCATEGORY% but that doesnt work. Do you know a workaround to get the subcategory inplace for only a few main categories?

Thanks,

B.

Submitted by support on Fri, 2010-10-22 08:31

Hi,

Placeholders aren't actually supported in the replace value of the Search and Replace filter as it stands, but it's easy to add! In includes/filter.php, look for the following code at line 49:

    return trim(str_replace($filter_data["search"],$filter_data["replace"],$text));

...and REPLACE with:

    return trim(str_replace($filter_data["search"],filter_recordPlaceholders($filter_data["replace"]),$text));

Hope this helps!

Cheers,
David.
--
PriceTapestry.com

Submitted by redspark on Fri, 2010-10-22 09:12

Hi David,

It works!

Thanx,

B.