|
|
 Rank: Aficionado
Joined: 8/4/2006 Posts: 106 Location: London
|
Is there a tool for doing bulk imports of existing content into Umbraco? I have a load of existing HTML pages which I need to add in (around 90) but don't really want to copy and page them by hand.
If not, is there any example code of doing this in C# or VB.NET, programmatically creating a page and adding the content.
|
|
Rank: Enthusiast
Joined: 8/15/2006 Posts: 17 Location: Melbourne, Australia
|
Getting the content in is not too hard - its the relationships that will be the hard part! You will need some kind of structured data - have you got a site map?
|
|
 Rank: Aficionado
Joined: 8/4/2006 Posts: 106 Location: London
|
There's lots of links between the HTML (it's documentation), but they're all relative. Looks like I'm going to have a nightmare changing those, I'm starting to think I will just make a new IIS application for the content.
|
|
 Rank: Aficionado
Joined: 8/4/2006 Posts: 106 Location: London
|
BTW How would I bulk import content if it were say, a load of text files or HTML files? Is there a tool for it?
|
|
 Rank: Addict
Joined: 7/19/2006 Posts: 649 Location: Preston, UK
|
Chris,
You would have to write your own using the Umbraco API. Also to parse your HTML content and sort out any links you could use something like <a href="http://smourier.blogspot.com/2005/05/net-html-agility-pack-how-to-use.html">htmlagility kit</a> to xmlise the html content and xpath out any hrefs and maintain say an xml file of links with url and new uploaded umbraco id. Then when all content is uploaded trawl through the xml file and recreate the links.
Easier said than done but I did stuff like this for other cms's
Level 2 certified. If it aint broke dont fix.
|
|
Rank: Aficionado
Joined: 7/20/2006 Posts: 107
|
I would sponsor/pay/donate to Umbraco if someone would create this for me. If your interested let me know and I'll put together a spec. but it's basically as spelled out in this thread. The only difference is that I have 1000's of pages of HTML with links to images and other pages (but mostly links to images) that need to be imported.
email me at: garybronson[at]greekpeak.net or post here.
GaryB
|
|
|
Guest |