[pmwiki-users] New Recipe: Text Extract

Hans design5 at softflow.co.uk
Sun Jan 27 13:36:46 CST 2008


Sunday, January 27, 2008, 8:19:59 PM, Graham Archer wrote:

> In all cases the first "Results xx" appears on the far right of the 
> page. Is there a way to control
> where on the page this Results text appears?   I don't mind if it's hard
> on the left, but on the right
> causes me some problems with building text around in to make a report.

> Ideally I'd just like the XX number so I can build my own text around it.

In the present version this is kind of hard coded in the script, so
you need to modify it:

Go to switch($header)
         case 'counter':

and  change line
   $text = "%right%'''Results: ".$cnt."''' \n----\n".$text;

to something like:
    $text = "'''{$cnt}''' \n----\n".$text;

The {$cnt} gives the result count.
The formatting is wiki markup: '''bold''' and ---- horizontal rule.
\n are new lines.

Hope this helps.


  ~Hans




More information about the pmwiki-users mailing list