[pmwiki-users] Recipe Update: Fox
editor at fast.st
Mon Jan 28 14:03:54 CST 2008
I'm glad you noticed this could be done this way. I believe Pm could
actually get this functionality as a markup expression in a regular
pagelist template. Sometime back, I got this to work in my wiki
The pagelist retrieves the list of pages, then a simple expression
markup in the pagelist template retrieves the first line in the page
with the searched term (passed to it from the pagelist directive),
highlighting the term. Of course you could format the template any
You can see it in action at
Try typing in the word "test" lower case for an example. It's still a
bit experimental, and there are some issues I've not yet resolved for
myself--but the basic idea could be easily used within PmWiki to give
contextual search results. All it took was the equivalent of a 10
line "highlight" markup expression, which took a term, and a page name
to generate the output via a pagelist template.
On Jan 25, 2008 10:49 AM, Hans <design5 at softflow.co.uk> wrote:
> A new update of fox.php is released which adds markup (:foxdisplay:)
> and foxaction=display.
> Using foxaction=display will direct the output to the (:foxdisplay:)
> markup (displays at that position in the page), instead of writing
> (and saving) into a page.
> I added this capability as an easy way to use a Fox form for
> evaluating expressions and displaying the result directly.
> For instance by using the TextExtract 'extract' markup expression
> in a fox template, a general search/text extract form can be built,
> which displays text lines of matches with searchterm highlighting etc.
> See http://www.pmwiki.org/wiki/Cookbook/TextExtract for example code.
> pmwiki-users mailing list
> pmwiki-users at pmichaud.com
More information about the pmwiki-users