[pmwiki-users] Using page text variable with the search action

Pierre Racine Pierre.Racine at sbf.ulaval.ca
Fri Mar 28 07:38:14 CDT 2008

Ok, so what I did was to add this handler to my local stuff:

SDV($HandleActions['pagelist'], 'HandlePageList');
function HandlePageList($pagename) 
  global $PageStartFmt, $PageEndFmt, $SortField;

  foreach ($_GET as $key => $value)
    $getstr .= $key."=".$value." ";
  $result = FmtPageList('$MatchList', $pagename, array('o' => $getstr));
  SDV($HandlePageListFmt,array(&$PageStartFmt, MarkupToHTML($pagename, $result), &$PageEndFmt));
  PrintFmt($pagename, $HandlePageListFmt);

So now I can control pagelist from the URL like this:



>-----Message d'origine-----
>De : pmwiki-users-bounces at pmichaud.com 
>[mailto:pmwiki-users-bounces at pmichaud.com] De la part de Pierre Racine
>Envoyé : 27 mars 2008 14:33
>À : pmwiki-users at pmichaud.com
>Objet : [pmwiki-users] Using page text variable with the search action
>I would like to build URLs for searching pages having page text
>variables defined to a certain value. I expected something like:
>to return a page of pages having the variable "Type" defined to "GPS" -
>using (:Type: GPS :) - but this does not seems to work.
>I guess the "$:" part of the URL is messing this up.
>Any idea?
>pmwiki-users mailing list
>pmwiki-users at pmichaud.com

More information about the pmwiki-users mailing list