We've now replicated our file-based CMS in a database, but it's still just a single page you can update with new content. If this was all we were going to do, it would be much easier to have a static HTML page and just edit the content in it with a HTML editor, or even Notepad. The reason we've moved to a database is to create a dynamic site, with different content available in different pages, all easily changed by the user. No, a single page Content Management System won't do. Or will it?
We have had a single page for our content up to now because we only created one file and set it to use one piece of content, whether from a database or a text file. We could create a second page, call it Page2.aspx
, duplicate the Default.aspx
code and the Edit.aspx
code, create a new table in our database for Page 2, and operate just like we have for the Default.aspx
page. But that's a lot of work. And it defeats the purpose of a CMS, especially since creating new pages...