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 16:04] – [Discussion] 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). Download, unpack the plugin directory /oddeven to your harddrive, update the code in action.php like so: | + | This plugin was not functioning anymore. I fixed the code, so it works again (in " |
- | < | + | < |
<?php | <?php | ||
/** | /** | ||
Line 96: | Line 96: | ||
And replace all code in style.css by the following two lines: | And replace all code in style.css by the following two lines: | ||
- | < | + | < |
table tr: | table tr: | ||
div.wrap_skip_css tr { background-color: | div.wrap_skip_css tr { background-color: | ||
</ | </ | ||
- | ... to make it compatible with modern javascript filtering and sorting (sortablejs, | + | ... to make it compatible with modern javascript filtering and sorting ([[sortablejs]], [[datatable]], [[struct]]). Adjust the color to your liking (optional). Now, archive the directory |
- | Now, you can even exclude individual tables from the zebra coloring using the [[https:// | + | 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> | <WRAP skip_css> | ||
... your table here | ... your table here | ||
- | </ | + | </ |
+ | <WRAP clear/> | ||
</ | </ | ||
- | **Note:** If using < | + | **Note:** If using '' |
--- [[user> | --- [[user> | ||
+ |
plugin/oddeven.1680617079.txt.gz · Last modified: 2023-04-04 16:04 by 212.201.117.6