Forum Discussion

AbhishekIlindra's avatar
8 years ago

Import content to Lithium from different Community

Hi All,

 

Can we able to import content from different Community(not Lithium) in to the Lithium Community and it is possible to get all the View count,Kudos,tag etc.,, in the import.

 

Thanks & Regards,

Abhishek 

  • Hi ClaudiusH,
    Sure, all the post will show their original date.  Have a look on attachment.  You just need to pass the date with post call. 

    AbhishekIlindra If you are going to use such type of approach then make sure you are using a sync call otherwise some of the posts may be skipped. 




    import_blogs.png
      • VikasB's avatar
        VikasB
        Boss

        Hi  ClaudiusH 

        Try this one.
        <#assign addBlog = restadmin("blogs/id/${blog_id}/messages/post?message.body=${body?url}&message.subject=${subject?url}&message.author=/users/login/${author}&message.post_date=${post_time?iso('UTC')}") />
        Hope it would be helpful. 

    • VikasB : Is the same approach if we are migrating content in one Lithium community in to different community.

      • VikasB's avatar
        VikasB
        Boss

        AbhishekIlindra Yes, approach would be same. Data(JSON/XML) handling would be easy it can be the plus point if you are having the same platform both side.   

  • AbhishekIlindra 
    We imported WordPress blog into Lithium. It's a manual process. 
    1. Fetch all the records as JSON from the specified platform.

    2. Manually put that JOSN in Endpoint. 

    3. Fetch JSON in component and revolve its entry in <#list> and set a synchronized post call inside the list.

    • ClaudiusH's avatar
      ClaudiusH
      Khoros Alumni (Retired)

      Vik wrote:

      We imported WordPress blog into Lithium. It's a manual process. 
      1. Fetch all the records as JSON from the specified platform.

      2. Manually put that JOSN in Endpoint. 

      3. Fetch JSON in component and revolve its entry in <#list> and set a synchronized post call inside the list.


      Can you confirm that with that approach all the imported posts will not be shown with their original post date, but the a timestamp on the day the import was performed?

  • ClaudiusH's avatar
    ClaudiusH
    Khoros Alumni (Retired)
    Same limitation and answer as when you are importing from a non-Lithium community: professional service can perform such straight forward database copy. Pretty uncommon scenario though, isn't it? Normally when moving a Lithium community you would simply change the domain it's sitting on.
  • Yes,

     

    However, you're not able to do this yourself but with the assistance of professional services, they can do this. As part of the engagement with PS you'll have a mapping exercise where every field or row will be mapped from your data export to the fields in the data import. 

     

    They have done this many times over and will have no doubt done a migration from your system before so may be worth speaking with your account team or raising a ticket with support who can point you in right direction.

     

    Thanks 

      • Fellsteruk's avatar
        Fellsteruk
        Boss
        I wouldn't have thought so and even if there was you'd have a massive amount of work on your hands building a bot or something to process.

        My best advice would be to speak with PS for help