|Version 6 (modified by anonymous, 4 years ago) (diff)|
Search & Replace text in wiki pages
This plugin allows you to search and replace text in wiki pages.
It is based on the wikirename plugin: http://trac-hacks.org/wiki/WikiRenamePlugin.
After replacing a new version of the wiki page is created with a log of the changes.
You can access the page search & replace form through the Admin system > Wiki Replace.
text to find
text to replace with
a list of wiki pages, each page should be on a separate line; you may use * and ? wildcards
examples: \*, Trac\*, Category/*/Index, Calendar/2009\_??\_02
A script named trac-wikireplace will automatically be installed.
To use it:
trac-wikireplace old-text new-text wiki-page ... /path/to/trac/env
A WIKI_REPLACE permission is available, though anyone with WIKI_ADMIN will also be allowed to replace in pages.
To enable the plugin:
[components] wikireplace.* = enabled
If you have any issues, create a new ticket.
Download the zipped source from here.
-  by miezuit on 2013-04-27 11:31:27
Fix for #11031. Better approach of splitting wiki page input into lines.
-  by miezuit on 2013-02-15 18:58:33
Fix for #10864:
Replaced GLOB with LIKE (GLOB is available only on SQLite).
Handle LIKE cross-compatible way.
-  by miezuit on 2013-02-13 10:33:02
Fix attempt for #10864 - probably an sql case sensitivity issue