Thanks !
I was trying to update directly the database table xwd_content from
public.xwikidoc but I haven't had much success yet (not to mention that
this is probably not a good idea).
Denis GERMAIN
2017-01-26 9:50 GMT+01:00 Vincent Massol <vincent(a)massol.net>et>:
Hi Denis,
On 24 Jan 2017, at 16:01, Denis GERMAIN
<dt.germain(a)gmail.com> wrote:
Hello,
After having succesfully migrated from a 300 pages mediawiki to xwiki
(which worked like a charm with the FilterStream app),
Nice :)
I need to find a way
to automate modifications to the migrated xwiki pages.
In mediawiki, I could create "highlighted boxes" in which I put code by
simply adding a space caracter as the very first caracter of each line.
FilterStream application converted this empty space to "}}}" and
"{{{"
which is totally the right way to convert this from the MW syntax to
XWiki
syntax, but doesn't fit my needs.
Ideally, I'd like to convert every "{{{" tags to "{{code}}" and
every
"}}}"
tags to "{{/code}}"
Do you have any idea how to achieve this ?
I’ve created this FAQ entry for you:
http://www.xwiki.org/xwiki/bin/view/FAQ/How%20to%20search%20and%20replace%
20content%20programmatically
I hope it answers your question :)
Thanks
-Vincent
Regards
Denis GERMAIN