[pmwiki-users] Fox Filter Question (corrected)

James DeVain jamesdevain at mail.com
Mon Jan 12 00:22:31 CST 2009


I want to create a fox filter which would remove all
commas from any feild named "pagename". What I have
so far is:

$FoxFilterFunctions['nocomma'] = 'nocomma';
   function nocomma($pagename, $fields) {
    $fields = preg_replace('/,/', ' ', $fields);
   return $fields;

This filters commas from every field. How would I make
it filter only fields named "pagename"? Is there a way
to apply the filter to one specific feild just using
the form markup, or do I need to specify that in the
filter itself?


Be Yourself @ mail.com!
Choose From 200+ Email Addresses
Get a Free Account at www.mail.com

More information about the pmwiki-users mailing list