[Pmwiki-users] New Version of PmWikiDraw

Ciaran ciaranj
Wed Nov 10 01:18:37 CST 2004


Hi,  
The latest release of PmWIkiDraw is released.  This version has a
couple of new features that may be of interest.

First we've got some new configuration options that you can set in
your config.php to alter the behaviour of the plugin:

$drawingDebugEnabled
----------------------------------
Set this variable to true if you want to see lots of extra debug in
your Java Console, can be handy for tracing issues with your initial
installation.

$drawingExtraColors
-------------------------------
Add extra colours to the colour menu, such as 'Fill', 'Text Colour' or
'Line Colour'.
An example value is : 
  $drawingExtraColors = "Aquamarine=#70DB93,New Tan=EBC79E,Sea
Green=238E68,Motorola Blue=#3ff";

This would add 3 new colours to the menus.

$drawingVersioningEnabled
-----------------------------------------
Our initial implementation of a version history for your drawings (Big
thanks to Knut here, most of the work in this area so far has been by
him.)  Set this to true if you want a copy of your image to be saved
every time it is edited.  Please note this functionality is not
currently 'working'.  For example *every* time someone edits an image,
a copy is made, regardless of whether they save their changes, and
although there *is* a mechanism to view the history of the images, it
currently doesn't display anything :)   But it may be useful if you
ever want to (manually) revert some changes that were done to a
drawing.

$displayDrawingEditFmt
------------------------------------
This can control a link that will appear immediately after the drawing
in the wiki page. [You can of course set this to "" as the map file
for each image contains a clickable edit border. There are two
provided examples (The system defaults to the latter graphical
example, please note the extra HTMLStylesFmt that is created for the
new link.) :

$displayDrawingEditFmt = "<a class='pmwikidrawlink'
href='\$editImageUrl' title='Edit Image'><img
src='\$pubdirurl/drawing/edit.gif'/></a>";

$displayDrawingEditFmt = "<br/><a class='pmwikidraweditlink'
title='$[click to edit image]' href='\$editImageUrl'> - $[picture]:
\$drawing</a>";
// css style for drawing caption
$HTMLStylesFmt[] = ".pmwikidraweditlink { font-size:70%;
font-weight:bold; }\n";

$displayDrawingHistoryFmt
----------------------------------------
Similar to the edit link, this controls a block of html that follows
the edit link (if present, drawing otherwise) that will in the future
allow a user/admin etc to view the history of a given drawing.   The
script currently defaults to the following value:
$displayDrawingHistoryFmt = "<a class='pmwikidrawlink'
href='\$showHistoryUrl' title='$[Image history]'><img
src='\$pubdirurl/drawing/news.gif'/></a>";


As usual the plugin is available from the cookbook pages:
PmWiki 1: http://www.pmwiki.org/wiki/Cookbook/PMWikiDraw
PmWiki 2:  http://www.pmwiki.org/pmwiki2/pmwiki.php/Cookbook/PmWikiDraw


Any comments or feedback welcome 
- Thanks

-- 
- Ciaran



More information about the pmwiki-users mailing list