plugin:oddeven
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
plugin:oddeven [2023-04-04 14:14] – 212.201.117.6 | plugin:oddeven [2024-04-22 10:21] (current) – 212.201.117.6 | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== OddEven Plugin ====== | ====== OddEven Plugin ====== | ||
---- plugin ---- | ---- plugin ---- | ||
- | description: | + | description: |
author | author | ||
email : az@vovanium.ru | email : az@vovanium.ru | ||
type : action | type : action | ||
lastupdate : 2009-03-24 | lastupdate : 2009-03-24 | ||
- | compatible : Elenor of Tsort, !Igor | + | compatible : !Kaos, |
depends | depends | ||
conflicts | conflicts | ||
Line 15: | Line 15: | ||
---- | ---- | ||
- | ===== Download | + | ===== Download, Installation, License |
- | Search and install the plugin using the [[plugin:extension|Extension Manager]]. Refer to [[: | + | Search and install the plugin using the [[extension|Extension Manager]]. Refer to [[: |
* http:// | * http:// | ||
Line 25: | Line 25: | ||
===== Syntax ===== | ===== Syntax ===== | ||
- | No syntax required. Once the plugin is installed, the background of ALL tables in your Dokuwiki | + | No syntax required. Once the plugin is installed, the background of ALL tables in your DokuWiki |
- | 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). | + | However, you can modify the color of the rows OR change the alternation from odd to even by modifying the '' |
===== Plugin internals ===== | ===== Plugin internals ===== | ||
Line 37: | Line 37: | ||
- // | - // | ||
- | As plugin run, is registers RENDERER_CONTENT_POSTPROCESS action hook called ' | + | As plugin run, is registers |
===== Discussion ===== | ===== Discussion ===== | ||
- | This plugin was not functioning anymore. I fixed the code, so it works again (in Igor). | + | This plugin was not functioning anymore. I fixed the code, so it works again (in " |
- | < | + | < |
<?php | <?php | ||
/** | /** | ||
Line 93: | Line 93: | ||
?> | ?> | ||
</ | </ | ||
- | --- [[user> | + | |
+ | And replace all code in style.css by the following two lines: | ||
+ | |||
+ | <code css> | ||
+ | table tr: | ||
+ | div.wrap_skip_css tr { background-color: | ||
+ | </ | ||
+ | |||
+ | ... to make it compatible with modern javascript filtering and sorting ([[sortablejs]], | ||
+ | |||
+ | Now, you can even exclude individual tables from the zebra coloring using the [[wrap|wrap plugin]] with following syntax on your wiki page: | ||
+ | |||
+ | < | ||
+ | <WRAP skip_css> | ||
+ | ... your table here | ||
+ | </ | ||
+ | <WRAP clear/> | ||
+ | </ | ||
+ | |||
+ | **Note:** If using ''< | ||
+ | |||
+ | --- [[user> |
plugin/oddeven.1680610499.txt.gz · Last modified: 2023-04-04 14:14 by 212.201.117.6