Implementing Master Pages
This demo begins to set up some of the ASP.NET structural changes necessary to take master pages site wide: a folder for master pages, dropping the web.sitemap based breadcrumbs, XHTML alterations to the navbars and adjusting the CSS and JS files to accommodate the realities of a master page based website.
First, I created a folder for master pages, and copied my template, under a new name MasterPage06Demo.master, into the new folder. I also created folders for the CSS files and all the javascript JS files and moved all those files into them. I started looking through the file for anything that looked "broken" and which now needed to be referenced via the application root. For reasons I can't explain however it's not working. I'll probably have to post the page live... which should be interesting since it doesn't really match the site right now. I'll figure something out. Maybe port the current site to www.EarthChronicle.com and build this one as beta.EarthChronicle.com. That might work, and it may be necessary to post what I've got to get assistance. I remember this problem from before and it was such a pain in the ass I went back to writing fiction for a long time.
I also removed the ASP.NET SiteMapPath control. I will have to handle breadcrumbs manually, or... something. Technically, it's only commented out so I know exactly where it was in code. I was having visions of working on alternatives in a month or more and having no idea where the breadcrumbs went in code, searching through old files for the info, etc. It seemed wiser just to comment it out so I can go back.
Unfortunately, ASP.NET doesn't seem to give you a way to comment out this code. It recognizes the tag inside, and even caused sufficient problems that my first two attempts to modify it didn't work. I just decided to eliminate the tag and leave only a comment saying, SiteMapPath Was Here!
[chroniclemaster1, 2008/09/14]
Skip to Main Points