DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:usercss

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
plugin:usercss [2013-12-29 01:33] – [Download and Installation] 95.115.64.230plugin:usercss [2023-12-21 15:44] (current) – new download url Aleksandr
Line 1: Line 1:
-====== usercss plugin ======+====== UserCSS Plugin ======
  
 ---- plugin ---- ---- plugin ----
-description: edit CSS styles directly from within a wikipage +description: Edit CSS styles directly from within a wikipage 
 author     : Randolf Rotta author     : Randolf Rotta
 email      : rrotta@informatik.tu-cottbus.de email      : rrotta@informatik.tu-cottbus.de
Line 13: Line 13:
 tags       : style, editing tags       : style, editing
  
-downloadurl: http://studiy.tu-cottbus.de/~rrotta/_media/projects:dokuwiki:usercss.zip?id=projects%3Adokuwiki%3Ausercss+downloadurl: https://trello.com/1/cards/5d502a49d1fa7d891295dcdf/attachments/5d502a67c140b94371263cb0/download/usercss.zip 
 +bugtracker :  
 +sourcerepo :  
 +donationurl:  
 + 
 +screenshot_img: 
 ---- ----
  
 ===== Download and Installation ===== ===== Download and Installation =====
  
-Download and install the plugin using the [[plugin:plugin|Plugin Manager]] using the following URL. Refer to [[:Plugins]] on how to install plugins manually. +Search and install the plugin using the [[plugin:extension|Extension Manager]]. Refer to [[:Plugins]] on how to install plugins manually.
- +
-  * {{http://studiy.tu-cottbus.de/~rrotta/_media/projects:dokuwiki:usercss.zip?id=projects%3Adokuwiki%3Ausercss|usercss.zip}}+
  
 In addition two event hooks have to be inserted into ''lib/exe/css.php''. The first change is in the function ''css_out()'' in order to append the data to the output: In addition two event hooks have to be inserted into ''lib/exe/css.php''. The first change is in the function ''css_out()'' in order to append the data to the output:
Line 43: Line 46:
  
 The second change is in ''css_cacheok()'' and allows to add the wiki page to the cache checks.  The second change is in ''css_cacheok()'' and allows to add the wiki page to the cache checks. 
- 
-FIXME This patch location is not contained in Binkey. 
  
 <code php> <code php>
Line 57: Line 58:
  
     // now walk the files     // now walk the files
 +</code>
 +
 +Patch location in Binky:
 +
 +<code php>
 +    // cache influencers
 +    $tplinc = tpl_basedir($tpl);
 +    $cache_files = getConfigFiles('main');
 +    $cache_files[] = $tplinc.'style.ini';
 +    $cache_files[] = $tplinc.'style.local.ini'; // @deprecated
 +    $cache_files[] = DOKU_CONF."tpl/$tpl/style.ini";
 +    $cache_files[] = __FILE__;
 +
 +    //>>>>>> ask for further files to check : usercss plugin
 +    trigger_event('TPL_CSS_CACHEOK', $files);
 +    //<<<<<<
 </code> </code>
  
plugin/usercss.1388277180.txt.gz · Last modified: 2013-12-29 01:33 by 95.115.64.230

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki