Now I try to migrate existing site to umbraco platform. Existing site have a big news section ( about 500 items). All news have this hierarchy:
newsList->NewsCategory->NewsItem
I already create all templates and documentTypes I need. Now I need to create in NewsList content item of Umbrraco NewsCategories and NewsItems.
NewsCategories and NewsItems in existing site is in the two tables of SQL server database. So I need just suggestion how to create documents in content section of umbraco in code.
Add Content items programmaticaly
Hi!
Now I try to migrate existing site to umbraco platform. Existing site have a big news section ( about 500 items). All news have this hierarchy:
newsList->NewsCategory->NewsItem
I already create all templates and documentTypes I need. Now I need to create in NewsList content item of Umbrraco NewsCategories and NewsItems.
NewsCategories and NewsItems in existing site is in the two tables of SQL server database. So I need just suggestion how to create documents in content section of umbraco in code.
I find static method MakeNew of ContentItem class. Is it right way? But I dont know, how to use it.
Hi,
You could do this yourself using Document.MakeNew or use the umbImport tool I wrote to import the news items into umbraco.
Hope it helps you,
Richard
As noted by Richard, i would also recommend using umbImportTool. Otherwise Document.MakeNew
Thanks a lot all, I will try and tell here about my results. Also can u tell me, is somewhere in umbraco database saves content section?
I cnow, that all content is in xml file in data folder, is it xml main storage for content or this file creates on the fly from database?
is working on a reply...