What is the best way to convert local links in DekiWiki (MindTouch) to anchors for Confluence? Internal links appear to convert correctly when the header title is "linkname" as in this example: <a href="#linkname">, but not when #linkname does not match the header title. <a name="linkname"></a> causes an error, <span id="linkname" /> doesn't work. What is the easiest way to get the converter to insert a {anchor:linkname} when converting?
Hi Ted
AppFusions supports the UWC and migrations as a whole - and have successfully migrated MindTouch to Confluence also before. Please email us at info@appfusions.com.
Best,
Ellen
Yes- it's been over a year and a half since I was working on migrating a MindTouch (Deki) Wiki to Confluence, and so I don't remember completely. But I had to use Eclipse to build the UWC tool, and then actually change some of the Java code. A lot can be done in the converter.mindtouch.properties file. Here is a relevant piece:
#Internal links (Anchors) cause the Parser to fail
#not pretty - but remove any rel=".*?" in an internal link and add it in the next line
Mindtouch.3448.custom.java-regex=(<a.*?href="#.*?")(.*?)(rel=".*?")(.*?)(>){replace-with}$1$2$4$5
#some internal links don't have rel="internal"
Mindtouch.3449.custom.java-regex=(<a.*?href="#.*?")(.*?)(>){replace-with}$1$2 rel="internal">
I really learned a lot about Java regular expressions- there are a lot of options. Even then our conversion was not entirely perfect- there were a few garbled page- but most converted ok.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you Ted.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Ellen, sorry for getting back to you, but I resolved the issue with anchors. I have your contact info for future reference.
Ted
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
thanks - sounds good.
Best, Ellen
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ted,
Would it be possible that you share your solution here with us? ;-)
Thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.