Hi David.
Is it possible to use a filter in the description field when using search and replace?
To explain this better.
for my product description I'm trying to search for %ProductName% and replace with nothing (to remove the product name from within the description, currently its not working and I'm trying to work out if it should work?
Cheers Mally
Hi Mally,
That's not built in but very easy to add!
In includes/filter.php look for the following code at line 49 (within the filter_searchReplaceExec() function)
return trim(str_replace($filter_data["search"],$filter_data["replace"],$text));
...and REPLACE with:
$filter_data["search"] = filter_recordPlaceholders($filter_data["search"]);
return trim(str_replace($filter_data["search"],$filter_data["replace"],$text));
The "Search" parameter will then be replaced out as per the normal %fieldname% placeholder functionality before being used as the search operator in the replace operation.
Hope this helps!
Cheers,
David.
--
PriceTapestry.com