It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Selective conversion of TWiki links

I'm trying to convert a batch of TWiki pages into Confluence, while still retaining most older pages on TWiki (to become a read-only archive).

The pages in my selection contain many internal-TWiki links.

  • Some point to other pages in the selection, so need to be converted to Confluence links
  • Others point to pages I'm not converting, so must continue to point to TWiki.

UWC appears to convert all the TWiki links it can, meaning that my tests so far yield a lot of undefined links.

The TWiki is still in use, so I can't modify pages directly on the TWiki before conversion.

A) Is there any way to control which links UWC converts?

If not...

B) How can I do a 2-step conversion - first from TWiki to my HD (without sending pages to Confluence), and then from my HD to Confluence (thus allowing me to make manual modifications to the pages before uploading) - while still preserving the page hierarchy and attachments?


1 answer

A) Nope
B) The simplest path forward would be to write a custom LinkConverter to handle this problem. As I recall the TWiki link handling uses a lot of tokenization to process the links using properties. Probably what I would do is work out some kind of methodology for identifying which pages are to be linked where (maybe a seperate properties file? or maybe just add your own misc properties to the file?), then write a custom link converter to use your properties to update the should-point-to-TWiki links first (possibly tokenizing the results to hide them from the normal link handling), and calling that class before the normal link handling which will then take care of your needs-to-point-to-Confluence links.

Noting: A 2 step conversion isnt impossible, but it's not going to be less complicated than the above suggestion.

Good luck!

Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published yesterday in Confluence

Confluence CVEs and common questions

Two vulnerabilities have been published for Confluence Server and Data Center recently: March 20, 2019 CVE-2019-3395 / CVE-2019-3396 April 17, 2019 CVE-2019-3398 The goal of this article is...

69 views 0 9
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you