Short description

I would like to be able to modify the rel attribute of links via the standard syntax:

[[http://moinmo.in|MoinMoin|title="MoinMoin",rel="home"]]

in order to be able to use the Lightbox javascript package for fancy image display.

This is an easy change -- modifiable attributes for links are set in the _link_repl method of the file MoinMoin/parser/text_moin_wiki.py:

acceptable_attrs = ['class', 'title', 'target', 'accesskey', ] # no style because of JS

So all that is required is to add 'rel' to this list, unless there is a good reason not to.

Implemented by: http://hg.moinmo.in/moin/1.9/rev/48874d70abff

Example

Example Code to open images with lightbox -- DuffDave 2011-12-28 17:49:02

[[attachment:moin.png|{{attachment:moin.png}}|title="MoinMoinWiki",rel="lightbox",&do=get]]


CategoryFeatureImplemented

MoinMoin: FeatureRequests/ModifyLinkRelAttribute (last edited 2011-12-28 17:49:03 by DuffDave)