Forum Discussion
16 Replies
- ClaudiusH8 years agoKhoros 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?
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.VikasB : Is the same approach if we are migrating content in one Lithium community in to different community.
- ClaudiusH8 years agoKhoros Alumni (Retired)
Wow. I am a bit surprised since both the Community API v1 call "messages / post" as well as the API v2 CREATE on the message collection according to the documentation do not allow to pass a timestamp.
Would you mind sharing which call you are using?
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.
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.
Related Content
- 24 days ago
- 24 days ago
- 24 days ago
- 24 days ago
- 24 days ago