![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
|
Home > Staff > Staff Resources > Web site information
This page gives an overview of the entire Web site and corresponds to the breakdown by directory. When new directories and/or sections are added to the Web site, this page should be updated.
Page elements Each page of the Web site contains three main sections: ![]() ![]()
The server-side include files for these page elements are (more on server-side includes here):
Updating the site The Web site can be updated using a tool like Dreamweaver or by editing the HTML directly, but the most important thing to remember is to maintain the template so the page elements are kept in tact. Specifically, all of the Web pages use "server-side includes." This is a line that appears in the HTML of the Web page file that appears something like:
This tells the Web server to go and get the file indicated (in the above example, footer.html) and include the contents of it when putting together the Web page before sending it to your Web browser. By the time it gets to your Web browser, the contents of the included file is already entered into the source of the Web page. Therefore, for example, this Web page uses #include directives in the code. However, if you do a "View Page Source" on this page from your Web browser, you will not see any of the #include lines because the contents of the included files have already been put in. The benefit of using server-side includes is that when a change must be made to a page element that is common to all pages, it can be done by simply editing the included files. For example, if the location of the History section of the Web site were to change, only the included file for the banner would have to be updated with the new link. Then, because all of the Web pages only refer to the file for the banner (instead of including the HTML code for the banner in every single Web page file), the change would appear on all of the Web pages. To keep the server-side include lines in tact, always use Fetch or another FTP program to download and upload the Web page files. Do not download files using a Web browser since accessing the file this way makes the Web server parse the #include lines.
Creating a new page If you are creating a new page, you can get started with this template (to download this file, right-click on a PC or hold the command key while clicking on a Mac and choose the option "Save Link As..." or "Save Target As..."). This file is also available via FTP at You can copy this file to where you would like to create the new page, renaming it to the desired filename. Then, you can update it with the desired content. For more information on updating pages, click here. If necessary, be sure to update the sitemap as well.
Updating a page Usually when updating a page, the only area that you need to edit would be the main content area. However, there are other elements that may need to be updated when specific changes happen:
Also, if you are moving pages or creating new pages/sections, be sure to update the sitemap if necessary.
Tips and Tools
|