On Jan 6, 2012, at 10:39 AM, Guillaume Lerouge wrote:
Hi,
one note: be careful when using something like this on your whole wiki. It can have unexpected side effects (like replacing parts of words in place you didn't expect) and you'll have no quick way to rollback (you'll have to do it manually, page by page).
Good point, I've added the warning to the snippet page. @Jinyan: You can tune the XWQL query to limit it to a given space or documents by adding for ex: "… and doc.space == 'yourspace' … " "… and doc.name == 'name of the doc'… " -Vincent
Guillaume
On Fri, Jan 6, 2012 at 10:36 AM, Jinyan Su <[email protected]> wrote:
Thanks. I'll give it a try. Saw your name all over the pages. You rock.
Regards,
--Robs
On Fri, Jan 6, 2012 at 5:32 PM, Vincent Massol <[email protected]> wrote:
Hi,
On Jan 6, 2012, at 1:40 AM, Jinyan Su wrote:
Hi.
I'd like to search through the body of all xwiki documents for a specified string (say, "fu"), and replace it with another ("bar").
Been searching extensions and google and haven't come-up with any way to do this.
mediawiki does have an extension to enable this. Anything similar in xwiki?
I've just coded a quick one for you here:
http://extensions.xwiki.org/xwiki/bin/view/Extension/Replace+Word+Snippet
Enjoy -Vincent
Thanks,
--Xiao Su blah, blah, blah... the right of the people peaceably to assemble, and
to
petition the Government for a redress of grievances... blah, blah, blah
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- blah, blah, blah... the right of the people peaceably to assemble, and to petition the Government for a redress of grievances... blah, blah, blah _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users