Compatible with DokuWiki
2016-06-26a "Elenor of Tsort"
This extension has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues.
Download and Installation
You may visit original plugin page (in Russian) and see a demonstration: http://vovanium.ru/set/oddeven. Plugin is released as Public Domain, because of triviality.
No syntax required. Once the plugin is installed, the background of ALL tables in your Dokuwiki will have alternating (odd) rows colored light grey.
However, you can modify the color of the rows OR change the alternation from odd to even by modifying the style.css file included in the download (see below).
You may use it as tutorial on how to create output modification plugins.
Plugin consists of two files:
- action.php – the main code;
- 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.