Hi all,
I've been using the code
http://en.wikibooks.org/wiki/Umbraco/Samples_and_Articles/Creating_umbraco_pages_programmatically to add pages to Umbraco.
I have a category, subcategory, page structure that I want to import into Umbraco. Using the above code I can add all the pages under a node when I know it's ID. My question is how do I find the ID of a node using only it's name. Is there a way I can adjust the above code so I can pass in a name only and get the node ID to use as the parent ID?
My problem is that I can only create one level at a time by manually working out what the ID of the parent node is, if I could do this programmatically I could import the entire structure into Umbraco in one go.
Regards,
Dan