Add site content from xml feed. Options
Silverbug
Posted: Monday, February 18, 2008 12:26:54 PM

Rank: Enthusiast

Joined: 12/16/2007
Posts: 15
Location: Auckland, NZ
Hey guys,

Heres the scenario:

I have a umbraco website which has few simple content pages. I essentially want to add a catalog of products to the site.

I will be retrieving the catalog in via an xml feed.

I need to find a way of adding the items from the xml feed to the site each as separate pages (so that it can be indexed etc)

The more I think about it the more I think maybe this would be better written as a user control that gets run every day or so? Does any one have any idea on the best way to get this to would work?

Any help/suggestions appreciated.

Cheers,

Paul
warren
Posted: Monday, February 18, 2008 5:29:32 PM

Rank: Addict

Joined: 7/19/2006
Posts: 716
Location: Leigh-on-Sea, Essex, UK
Hi Paul.
This is my quick thoughts on this but I would create a single page with an XSLT or a .NET usercontrol to render the content from the XML feed and use URL rewriting.

Eg:
yourdomain.co.uk/viewproduct.aspx?id=4

with url rewriting
yourdomain.co.uk/products/view/{product name}_4.aspx

There are 101 ways to skin a cat so other people may have different suggestions to this.

Warren :)

Warren Buckley an Umbraco MVP 08-09 & level 1 certified developer
Silverbug
Posted: Tuesday, February 19, 2008 2:34:59 AM

Rank: Enthusiast

Joined: 12/16/2007
Posts: 15
Location: Auckland, NZ
Hey Warren,

Thanks for the quick reply.

Yeah I thought about just doing it that way but it want to add some other fields and trickiness to the page which are handled by umbraco. :)

Do you know if there is any way to programatically add pages to the site? I want it to essentially populate a specific document type(page) with the values from the feed.

Paul
warren
Posted: Tuesday, February 19, 2008 12:23:59 PM

Rank: Addict

Joined: 7/19/2006
Posts: 716
Location: Leigh-on-Sea, Essex, UK
Silverbug
Posted: Wednesday, February 20, 2008 3:59:11 AM

Rank: Enthusiast

Joined: 12/16/2007
Posts: 15
Location: Auckland, NZ
Wow thats exactly what I was looking for. i had spent a good couple of hours looking for examples like that with no luck

Thanks so much Warren :thumbup:

Paul
warren
Posted: Wednesday, February 20, 2008 10:05:38 AM

Rank: Addict

Joined: 7/19/2006
Posts: 716
Location: Leigh-on-Sea, Essex, UK
Users browsing this topic
Guest


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.