|
|
 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
|
|
 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
|
|
 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
|
|
 Rank: Addict
Joined: 7/19/2006 Posts: 716 Location: Leigh-on-Sea, Essex, UK
|
|
|
 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
|
|
 Rank: Addict
Joined: 7/19/2006 Posts: 716 Location: Leigh-on-Sea, Essex, UK
|
|
|
|
Guest |