Installation and deployment Questions on installation, system configuration and deployment to the live server.
Version 6.x > Installation and deployment > Kentico Import Toolkit 6 - Blog Post View modes: 
User avatar
Certified Developer 11
Certified Developer 11
jellison - 12/4/2012 7:23:56 PM
   
Kentico Import Toolkit 6 - Blog Post
I've been messing around with Kentico Import toolkit 6, trying to import blog posts from a Movable Type xml export. I was able to import all of the blog posts, but it looks like the Blog Months were not created.

Is there something I missed using the Import Toolkit or do I need to do this with custom programming using the Kentico API?

Thanks,
Jason

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 12/9/2012 2:41:13 AM
   
RE:Kentico Import Toolkit 6 - Blog Post
Hi,

You need to do it in the API or import the blog month documents at first. However, this could be cumbersome. I am submitting this requirement to our product manager to be improved in the next version since I think that this should be handled or at least possible to set during the toolkit steps configuration.

Best regards,
Juraj Ondrus

User avatar
Member
Member
dan.mckenzie-forumcu - 5/9/2013 2:22:44 PM
   
RE:Kentico Import Toolkit 6 - Blog Post
I'm using Kentico 7 and this still seems to be not possible using the Import Toolkit. That is fine and I can deal with importing the blog month documents first.

My (somewhat related) question:
I'm trying to set the author of the post by mapping DocumentCreatedByUserID and setting that value to the ID of the author (ID found in the CMS_User table).

Still, after testing the import, it still shows me, Global Administrator, as being the author. Am I missing the field I need to map that username or user ID to?

Thanks!

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 5/9/2013 10:23:32 PM
   
RE:Kentico Import Toolkit 6 - Blog Post
Hi,

What is the value in the DB column DocumentCreatedByUserID after the import? The documents are having the ID of the global admin usually when imported this way. What is the source of the import?

Best regards,
Juraj Ondrus

User avatar
Member
Member
dan.mckenzie-forumcu - 5/10/2013 7:55:48 AM
   
RE:Kentico Import Toolkit 6 - Blog Post
Hey,

Yeah - looks like the DocumentCreatedByUserID value in the CMS_Document table is being set to Global Admin no matter what I map it to through the Import Toolkit. I am also trying to map the DocumentModifiedWhen, DocumentModifiedByUserID, and DocumentCreatedWhen values to XML data from our old blog and those are also being overwritten with the current datetime and the global admin user ID.

DocumentTags and essentially all of the other fields are mapping properly.

I think to resolve, I'll just add a field to the BlogPost DocType for the authors and modify the transformations to display that value first if it exists on the document.

Please let me know if this seems like the most logical solution or if you have any other thoughts!

Thanks man!

User avatar
Member
Member
dan.mckenzie-forumcu - 5/10/2013 1:58:12 PM
   
RE:Kentico Import Toolkit 6 - Blog Post
Also - I am unable to find a way through the Import Toolkit to import Comments. Is this possible and I'm just overlooking it? Or do I need to write something custom to import the comments?

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 5/13/2013 6:27:42 AM
   
RE:Kentico Import Toolkit 6 - Blog Post
Hi,

The blog comments are not a stand alone object - so it is not possible to import them using the tool. You will need to use the API and create custom code.

I am sorry for this inconvenience.

Best regards,
Juraj Ondrus

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 5/13/2013 6:12:50 AM
   
RE:Kentico Import Toolkit 6 - Blog Post
Hi,

The import toolkit creates, upon importing, a new instance of the TreeProvider object and uses the default values and current date/time. So far, no other users have required something like you right now. I would like to ask you to submit this on UserVoice portal. If it gets enough votes, the behavior will be changed.

Best regards,
Juraj Ondrus