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 

16 Replies

  • ClaudiusH's avatar
    ClaudiusH
    Khoros Alumni (Retired)
    8 years ago

    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?

  • 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 : Is the same approach if we are migrating content in one Lithium community in to different community.

  • VikasB's avatar
    VikasB
    Boss
    8 years ago

    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.   

  • VikasB's avatar
    VikasB
    Boss
    8 years ago

    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.