ImageMap Parser

Description

The ImageMap parser allows you to create clickable images inside Moin.

Download & Release Notes

Download

Release Version

Moin Version

Release Notes

ImageMap.py

1.0

1.6

ParserMarket/ImageMap/ReleaseNotes

Installation

For general installation instructions, see ParserMarket/InstallingParsers. This parser requires no special dependencies, such as outside Python libraries.

Usage

See ParserMarket/ImageMap/ReleaseNotes

Example

{{{#!ImageMap
picture.jpg;width="345";height="312" 
FrontPage;shape="rect";coords="11,10,59,29";alt="Area1"
http://www.xyz.com/;shape="circle";coords="42,36,96";alt="Area2"
FrontPage/SubPage;shape="poly";coords="48,311,105,248,96,210,75,205,38,234,8,310";alt="Area3"
Another Site in This Wiki;shape="rect";coords="11,10,59,29";alt="Area4"
}}}

See ParserMarket/ImageMap/ReleaseNotes for more details.

This parser is copyrighted by OliverSiemoneit

License

This parser is released under the terms of the GNU GPL.

Discussion

I'm not sure if this is the right place to mention it, but I've just installed MoinMoin 1.8 and the parser works with this version, too.

It seems the plugin does some attribute sanitizing and checking of quotes, but it is not sufficient. For example, the following map definition will produce an unquoted mouseover= in the resulting HTML:

Foo.gif;width="630";height="458" 
SomePage;shape="bar;coords=" onmouseover=blaa

I think the plugin shouldn't try to do any fancy checks on the number of "", but just strip of any "" around an attribute value, HTML escape the value (i.e., " to ") and then put "" around it again. Until then, I would not recommend using this plugin in a public environment.

MoinMoin: ParserMarket/ImageMap (last edited 2009-04-25 12:14:40 by 82-169-104-215)