2 Replies Latest reply on Oct 3, 2007 12:48 AM by PFZ

    How can we import Wiki content from an other type of Wiki Tool

       

      Hello

       

       

      Does someone know How can we import Wiki content from an other type of Wiki Tool like mediawiki or Confluence ?

       

       

       

       

       

      Thanks

       

       

        • Re: How can we import Wiki content from an other type of Wiki Tool

          hi PFZ,

           

          Since Clearspace doesn't understand mediawiki or Confluence macros, the best thing to do would be to export the HTML from your wiki and then use the Clearspace API to import the content. Here's an example of some Clearspace code that imports content from HTML:

          String body = "the HTML from your old wiki";
          RenderStrategy strategy = new RenderStrategy(RenderTarget.TARGET_PLAIN_TEXT, RenderStrategy.RENDER_ALL);
          String wikiBody = JiveApplication.getContext(AuthFactory.getSystemAuthToken())
            .getRenderManager().render(post, RenderType.BODY, strategy, body);
          

          Hope that's enough to get you started.

           

          Cheers,

           

          AJ