plugin:replace
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
plugin:replace [2010-11-30 09:59] – [Feature suggestions] 216.232.164.87 | plugin:replace [2014-05-10 16:08] – 91.40.123.248 | ||
---|---|---|---|
Line 8: | Line 8: | ||
lastupdate : 2009-04-13 | lastupdate : 2009-04-13 | ||
compatible : 2009-02-14 | compatible : 2009-02-14 | ||
+ | similar | ||
tags : search, replace | tags : search, replace | ||
Line 71: | Line 72: | ||
' | ' | ||
' | ' | ||
- | ' | + | ' |
); | ); | ||
} | } | ||
Line 118: | Line 119: | ||
===== Comments ===== | ===== Comments ===== | ||
Thank you very much for this plugin. For me it has been extremely helpful. (For beginners: Copy the PHP code into dokuwiki/ | Thank you very much for this plugin. For me it has been extremely helpful. (For beginners: Copy the PHP code into dokuwiki/ | ||
+ | |||
+ | ==== Integration with confmanager-plugin (new) ==== | ||
+ | |||
+ | ==== Integration with confmanager-plugin ==== | ||
+ | |||
+ | To modify replace.conf via admin-menu install [[confmanager|confmanager-plugin]] and modify following lines: | ||
+ | |||
+ | admn.php (line 9): add " | ||
+ | <code php> | ||
+ | var $cnffiles = array(' | ||
+ | </ | ||
+ | |||
+ | lang.php (for german) | ||
+ | <code css> | ||
+ | $lang[' | ||
+ | $lang[' | ||
+ | $lang[' | ||
+ | </ | ||
Line 124: | Line 143: | ||
* Please add **mutiple words** support - I would like to hack it but I don't get it *arg* -- // | * Please add **mutiple words** support - I would like to hack it but I don't get it *arg* -- // | ||
- | * Any way to do the replace within a source line? I would like to do the substitution for copy-pasting into multiple conf files. I guess I'm looking to also include the ' | + | * Any way to do the replace within a source line? I would like to do the substitution for copy-pasting into multiple conf files. I guess I'm looking to also include the ' |
\\ | \\ | ||
\\ | \\ | ||
Line 160: | Line 179: | ||
Fixed in version 2009-04-13. No extensive testing, I was just looking for a similar feature for another plugin and got curious if it's possible to make this one to work. Seems so. --- // | Fixed in version 2009-04-13. No extensive testing, I was just looking for a similar feature for another plugin and got curious if it's possible to make this one to work. Seems so. --- // | ||
+ | |||
+ | ---- | ||
+ | |||
+ | Working 2011-01-23. replace.conf needs double % before and after replacement text. (sry example replace.conf breaks page formatting). | ||
+ | original | ||
+ | < | ||
+ | start brc Brc bRc brC end \\ | ||
+ | start haccp ifs ifs6 brc5 end | ||
+ | </ | ||
+ | replaced | ||
+ | < | ||
+ | start BRC BRC bRc brC end | ||
+ | start HACCP IFS IFS6 BRC5 end | ||
+ | </ | ||
==== Plugin (2009-04-13) fails at line 74 ==== | ==== Plugin (2009-04-13) fails at line 74 ==== | ||
Line 200: | Line 233: | ||
</ | </ | ||
+ | |||
+ | ==== Bugfix for special chars (2012/ | ||
+ | |||
+ | <code php> | ||
+ | <?php | ||
+ | |||
+ | function preConnect() { | ||
+ | if(!count($this-> | ||
+ | $replacers = array_map(' | ||
+ | // removed ' | ||
+ | $this-> | ||
+ | } | ||
+ | |||
+ | </ | ||
+ | [[robert.jaeckel@verwaltung.uni-halle.de|Robert Jäckel]] |
plugin/replace.txt · Last modified: 2018-06-05 22:56 by Klap-in