01046: Search/pagelist for markups by their id and display the content of the found markup as result

Summary: Search/pagelist for markups by their id and display the content of the found markup as result
Created: 2008-09-16 04:48
Status: Closed - cookbook exists
Category: Feature
Assigned:
Priority: 3
Version: 2.2.0+
OS: -

Description:

I would like to have a searchresult or pagelist which is able to perform its search with the regex definded in a markup's definition. Therefor I would pass the markups id (the first parameter when defining a markup) as searchparameter.

The result should extract all matching markup-blocks found in the way they look when normaly viewing the page they contained in. In Addition the result should contain some extra information about the match like the page name and line number(s) of the match.

A little example:

A markup for a nice TODO note simply defined as:
Markup("^TODO", "block", "/^TODO (.*)$/", some nice html to display the the in $1 );

To create a TODO Overview page I like to type something like:
(:markup-searchresult ^TODO:)

Displays as list of all TODO-blocks on my wiki)

I think such a feature is usefull in many ways.

Thanks and greets, Jan

Hello.I think that you might use something like this:
* %todo% Some task.
* %todo% Another todo.
* %done% This is finished.

You define the %todo% and %done% WikiStyles as CSS classes applied to list items, and you can style them as you like. Then, to display just lines with %todo% use the recipe Cookbook:TextExtract. The recipe has a great number of parameters, I hope that it may work for you. --Petko February 26, 2010, at 01:15 PM