plugin:toucher
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revisionNext revisionBoth sides next revision | ||
plugin:toucher [2012-08-16 18:14] – created 194.44.164.133 | plugin:toucher [2018-05-28 19:59] – [Installation] Klap-in | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== | + | ====== |
---- plugin ---- | ---- plugin ---- | ||
- | description: | + | description: |
- | author | + | author |
email : nych.andriy@gmail.com | email : nych.andriy@gmail.com | ||
type : admin | type : admin | ||
- | lastupdate : 2012-08-16 | + | lastupdate : 2012-09-16 |
- | compatible : angua | + | compatible : Rincewind,angua,adora belle, |
depends | depends | ||
conflicts | conflicts | ||
Line 13: | Line 13: | ||
tags : admin, config, touch | tags : admin, config, touch | ||
+ | downloadurl: | ||
+ | bugtracker : https:// | ||
+ | sourcerepo : https:// | ||
+ | donationurl: | ||
---- | ---- | ||
===== Installation ===== | ===== Installation ===== | ||
- | Download the '' | + | Search |
- | Refer to [[: | + | |
- | <file php admin.php> | + | ===== Examples/Usage ===== |
- | <?php | + | |
- | /** | + | |
- | * DokuWiki Plugin toucher (Admin Component) | + | |
- | * | + | |
- | * @license GPL 2 http:// | + | |
- | * @author Andriy Nych < | + | |
- | */ | + | |
- | // must be run within Dokuwiki | + | The only purpose of this plugin is to [[wp> |
- | if (!defined(' | + | This procedure invalidates DokuWiki cache files as described here: [[doku> |
- | if(!defined('DOKU_BASE')) define('DOKU_BASE', | + | |
- | if (!defined(' | + | |
- | require_once DOKU_PLUGIN.' | + | This is useful, for example, to reload CSS, JavaScript files after update, plugin/ |
- | class admin_plugin_toucher extends DokuWiki_Admin_Plugin { | + | ===== Configuration and Settings ===== |
- | function forAdminOnly() { | + | The plugin has only one setting: it can be set available only to [[doku> |
- | return true; | + | |
- | } | + | |
- | function touchFiles() { | + | === Change Log === |
- | touch(DOKU_CONF." | + | |
- | } | + | |
- | function handle() { | + | Plugin was lying around here and there, even as a simple downloadable code block on this page. On 2012/09/16 it was moved to github so this date is its official birthday |
- | $this-> | + | |
- | } | + | |
- | function html() | + | {{rss>https://github.com/anandr/dokuwiki-plugin-toucher/ |
- | global $ID; | + | |
- | ptln('< | + | |
- | $this-> | + | |
- | ptln('< | + | |
- | } | + | |
- | } | + | |
- | </ | + | |
- | + | ||
- | Download the '' | + | |
- | Refer to [[: | + | |
- | + | ||
- | ===== Usage ===== | + | |
- | + | ||
- | | + | |
- | - Enjoy | + | |
- | + | ||
- | ===== Development ===== | + | |
- | + | ||
- | === Change Log === | + | |
- | + | ||
- | * **2012-08-16** | + | |
- | * Initial release | + | |
=== Known Bugs and Issues === | === Known Bugs and Issues === | ||
Line 80: | Line 46: | ||
=== ToDo/Wish List === | === ToDo/Wish List === | ||
- | Do you have one? | + | Any ideas? |
===== Discussion ===== | ===== Discussion ===== | ||
- | From my experiments touching the '' | + | Is it worth to include |
- | + | ||
- | * you install some plugin with its own javascript files and css styles | + | |
- | * you are developer and tweak dokuwiki | + | |
- | * may be there are some other cases too | + | |
- | In all these cases you have to empty browsed cache and sometimes do more magic to ensure that those files are actually loaded. | ||
- | Clicking the plugin link on the admin page has the same effect. At least this works for me. | ||
- | --- anandr // |
plugin/toucher.txt · Last modified: 2022-07-29 23:37 by Klap-in