OddEven Plugin

Compatible with DokuWiki

No compatibility info given!

plugin Paints table rows background to alternating colour stripes.

Last updated on
2009-03-24
Provides
Action

Tagged with highlight, tables

Download and Installation

Download and install the plugin using the Plugin Manager using the following URL. Refer to Plugins on how to install plugins manually.

You may vizit original plugin page (on russian) and see how it works: http://vovanium.ru/set/oddeven. Plugin is released as Public Domain, because of triviality.

Plugin internals

You may use it as tutorial on how to create output modification plugins.

Plugin consists of two files:

  1. action.php – the main code;
  2. style.css – stylesheet.

As plugin run, is registers RENDERER_CONTENT_POSTPROCESS action hook called 'oddeven'. When hook is called, it adds class 'roweven' to 'td' tags having class 'row0', 'row2' etc. and 'rowodd' for 'row1', 'row3' etc. using regexp replacement. Stylesheet defines class 'roweven' to have lightgray background color.

plugin/oddeven.txt · Last modified: 2010/10/03 16:23 by HåkanS
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 3.0 Unported
Imprint Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki
WikiForumIRCBugsGitXRefTranslate