3 | | [[Include(source:wikireplaceplugin/0.11/README)]] |
| 3 | == Notes == |
| 4 | |
| 5 | This plugin allows you to search and replace text in wiki pages. |
| 6 | |
| 7 | It is based on the wikirename plugin: http://trac-hacks.org/wiki/WikiRenamePlugin. |
| 8 | |
| 9 | After replacing a new version of the wiki page is created with a log of the changes. |
| 10 | |
| 11 | You can access the page search & replace form through the Admin system > Wiki Replace. |
| 12 | |
| 13 | Find: |
| 14 | text to find |
| 15 | Replace: |
| 16 | text to replace with |
| 17 | Wiki Pages: |
| 18 | a list of wiki pages, each page should be on a separate line; you may use * and ? wildcards |
| 19 | |
| 20 | examples: \*, Trac\*, Category/\*/Index, Calendar/2009\_??\_02 |
| 21 | |
| 22 | == Script == |
| 23 | |
| 24 | A script named {{{trac-wikireplace}}} will automatically be installed. |
| 25 | |
| 26 | To use it: |
| 27 | {{{ |
| 28 | trac-wikireplace old-text new-text wiki-page ... /path/to/trac/env |
| 29 | }}} |
| 30 | |
| 31 | == Permissions == |
| 32 | |
| 33 | A {{{WIKI_REPLACE}}} permission is available, though anyone with |
| 34 | {{{WIKI_ADMIN}}} will also be allowed to replace in pages. |
| 35 | |
| 36 | == Configuration == |
| 37 | |
| 38 | To enable the plugin: |
| 39 | {{{ |
| 40 | [components] |
| 41 | wikireplace.* = enabled |
| 42 | }}} |