I thought I'd share this- as I have had very little contact with the way websites are developed, and so I've come up with my own. I'd be interested to know how other sites manage the look and feel, and updating.
My website is www-belconnen-subs.com.au
My aim in writing the code was to make something which was quick and easy to add new pages, and also Q & E to change the look and feel of the whole site. I didn't want to have scripts which operated on a whole heap of html pages.
I chose to use ASP as I was comfortable with the technology, and I didn't want to go to great lengths to learn a new language. (I have touched ASP.NET but did not have any .Net development tools).
Here's the source code for one page:
Code: Select all
pictureList is an array of all the photos showing on the page.
writeNavigation shows the top part of the navigation. In this case, the "Signboard" link will not be an active link.
writeBoardLinks writes the links for the 70+ pages which have signboards. The "1" indicates that the "1" link will not be active.
writeAllPics displayes the pictures.
So if I change anything in the way the website is displayed, I only have to change in one place.
The longest part about creating a new page is creating named pictures. I could have just numbered them, but naming helps me to sort them out, and it helps a little to know if I've posted the same one twice.
So I've created a site which, despite having a lot of pages, is extremely easy to maintain.