Forum Discussion
6 Replies
- DougS12 years agoKhoros OracleYou could use the REST API to create the blogs (use the /nodes/type/blog/add call), create the blog posts (use the /boards/id/<blog id>/messages/post call), and blog post comments (use either the /messages/id/<unique message id/reply call or the /boards/id/<blog id>/messages/id/<board-specific message id>/reply call).
In your REST calls to create the blog article and replies, you can pass the "message.author" parameter to post the message as another user (you need to make the REST call as an admin user who had the "switch user" permission). You can also backdate the message using the "message.post_date" parameter (I think you need to make the REST call as an admin user to do this as well).
If you have Wordpress blog categories you would like to carry over, you can include them as labels (the Lithium analog to Wordpress categories) -- when you make the messages/post call, just include your categories in the "label.labels" POST parameter.
Hope that helps!
-Doug - IzabelaU12 years agoLithium Alumni (Retired)
Please see this related thread: http://lithosphere.lithium.com/t5/developers-discussion/Blogs-changing-the-post-date/m-p/90644
It looks like the call to change a message/article date is actually mis-documented and does not work as expected. We'll fix this in the docs and look into fixing this as soon as possible.
We're also working on importing our Wordpress Blog into Lithium.
IzabelaU: Has the documentation been updated, as you mentioned?
kcrawford: Did you end up completing your Wordpress import? If so, how did it work out? If you're willing, any code you're willing to share from the Wordpress-Lithium API import would be much appreciated to get a jump start.
- SuzieH11 years agoKhoros Alumni (Retired)
Hi iftomkins,
The documentation has been updated in that we have removed message.post_date as an accepted parameter. This means that filing a support ticket is still required to edit the post dates. Please post an idea for this to our idea exchange. I know this would be useful for many customers.
- nathan11 years agoExecutive
SuzieH- why has this option been removed? It looks like a really useful feature.
- SuzieH11 years agoKhoros Alumni (Retired)
nathan It's not that the feature was removed, rather it cannot be used externally by customers. It was documented externally by mistake. It will take engineering resources to expose this properly, so making noise on the Dev Network and the idea exchange is the best way to get this on the radar for our backlong/roadmap.
Related Content
- 11 years ago