[pmwiki-devel] Search forms and FmtPageList()

Petko Yotov 5ko at 5ko.fr
Fri Sep 25 08:57:23 CDT 2009


On Friday 25 September 2009 10:07:00 Hans wrote:
> Friday, September 25, 2009, 12:58:12 AM, Petko wrote:
> > Hello. Could you possibly use in recipe.php something like :
> >
> >   if ($action=="search")
> >     $_REQUEST['q'] = 'whatever transformation I need';
> >
> > ?
> >
> > First things I think of :
> > * quote initial Group/ to "Group/"
> > * prepend it, Group/ to myrecipe=Group/
> > * store it in a local variable and remove it from $_REQUEST['q']
> > * etc.
> 
> thanks. Yes, I can undo the transformation FmtPageList() did,
> it just adds extra code, a config var would be simpler.

I wouldn't undo the transformation FmtPageList() did, I'd process and fix the 
$_REQUEST array before FmtPageList() or any other function looked at it.

Adding config switch to the core is possible, I'll think about it.

Thanks,
Petko



More information about the pmwiki-devel mailing list