SiteMap - Initially populating with data
In another post, you mentioned that records in the SiteMap table are created in code, giving the example of creating a new article as one process where a new record is added to the SiteMap.
What about when you create a new page yourself?
I am using your book and sample code as a starting point for a custom website I am working on. I am copying and modifying files one at a time as I work through the book. I am through chapter 3 and have create the basic framework for the site; Master page, sub-master pages, themes, a default.aspx page and a contacts.aspx page.
I have created the separate code library and added many of the class files that you have in the sample code. I created a SiteMapEntity following your Chapter 3 example and I have copied the files in the Navigation folder to a similar folder in my library.
I can build and run the site, getting the default page and the contacts page. But I am not getting any SiteMapPath displayed. I do not have any data in the SiteMap table. Should adding pages like the contact.aspx and default.aspx to the site automatically generate records in the SiteMap table? If so, where is the code that actually does this?
Thanks,
Dave
|