[dokuwiki] Re: advice for developpment

  • From: Tamás Haraszti <haraszti@xxxxxxxxxxxxxxxxxx>
  • To: Lorenzo Bernardi <lorenzo.bernardi@xxxxxxxxxxx>
  • Date: Sun, 8 Jan 2017 15:22:09 +0100

Hi Lorenzo,

well, I have worked on this a bit in the last two days. Looking
forward to some feedback... I have written some extra fields for
bureaucracy, you can just copy them into the helper folder and use
them. The point: they allow for listing pages, listing information
from pages or extract information from dynamic search generated from
within the form (they work with variables).
I still need some more formatting options, but this is the work of
the last two days, when I had a bit of time.

The point is: this is one possible way to explore.

How it works: 

        seleclist variablename "namespace:" "ID"

will make a select field with the content of any page names, which
have 'namespace:' in their wiki path (full name).

        selectfrom variablename
        "namespace:pagename" /^[\^\|]\s*(.*)\s+\|.*\|/"

will list the firs colum of tables from pagename to a select list.

Getting search results from wiki pages into bureaucracy variable:

        action searchtemplate "template" page

is a modified template that will run searches and store the results
in variables defined as addsearch:

        addsearch test "@@variablename@@" regexp separator

where variablename is used to find the pages we look for.
It needs some more working on, but already works in my test system
reasonable to well to give an idea. Since pages and content are
searched, one can get a summary of several pages, e.g. paragraphs or
lines containing a specific date or range of dates, etc.

Bests,
Tamás

Attachment: actionsearchtemplate.php
Description: application/php

Attachment: fieldaddsearch.php
Description: application/php

Attachment: fieldselectfrom.php
Description: application/php

Attachment: fieldselectlist.php
Description: application/php

Other related posts: