Dear Pm, I finally managed to make WebFeeds generate the output I need for livesearch, as you suggested a few weeks ago. I added a new action handler for livesearch:
## Settings for livesearch feature SDVA($FeedFmt['livesearch']['feed'], array( '_start' => "<?xml version='1.0' encoding='$Charset' ?><ul class='LSRes'>", '_end' => "</ul>")); SDVA($FeedFmt['livesearch']['item'], array( '_start' => '<li class="LSRow"> - <a href="$PageUrl"> $Title</a>', '_end' => "</li>")); It wonderfully returns pages in selected groups as xml file. What would you suggest to combine this with a search query, so that I only get back the search results as xml? Thanks a lot in advance. Martin Am 09.03.2009 um 20:36 schrieb Patrick R. Michaud: > On Mon, Mar 09, 2009 at 06:46:03PM +0100, Martin Kerz wrote: >> Hi, >> >> is there a way to modify what a search returns? In pagelist.php I >> found $MatchList. Is this the variable, in which search the search >> results, i.e. the names of the target pages are stored? Can someone >> give me some further insight on how I can throw back a pure list of >> search results as a xml-file. >> >> Eventually I want to define the corresonding search query and the >> xml- >> result in an action of its own. > > I suggest looking at the ?action=rss and WebFeeds code instead -- > effectively what WebFeeds does is convert pagelists into XML output > of various forms. > > http://pmwiki.org/wiki/PmWiki/WebFeeds > > Or, if you can describe what you want the xml output to look > like, I bet we can come up with a simple recipe that you and > others can use as a starting point. > > Pm _______________________________________________ pmwiki-users mailing list [email protected] http://www.pmichaud.com/mailman/listinfo/pmwiki-users
