Planning Your Web Site's StructureExperts judge embroidery not just by the pretty picture a needle worker creates, but by the jumble of threadsneat or not so neat?that can be seen on the back side of the stitching. Similarly, building and maintaining a Web site can either generate a tangled mess of files and folders or an easy-to-follow collection. What you end up with can make your life as a Web maven a whole lot easier. No doubt you'll use smart page design and well-placed hyperlinks (as in Figure 10-7) to make your site easy to understand and navigate for viewers. Behind the scenes as well, you should have just as easy a time getting aroundmeaning that you'll want to organize files into a clear folder structure so they're easy to find. You'll also want to name everything clearly so your files are easy to identify.
As you'll see, FrontPage takes an active hand in managing your site. But creating an orderly site structure is still up to you. Guidelines for sorting and handling files follow. Note: As you learn FrontPage, you may occasionally encounter the term "Web" when it seems like FrontPage (or grizzled FrontPage veterans) should be referring to a "Web site." Microsoft used this confusing term in previous releases of FrontPage. Finally, the company abandoned it and now speaks the same language as the rest of the Web (the World Wide Web, that is). Within FrontPage, instead of web and subweb, you'll now see Web site and subsite. 10.5.1. Naming Your SiteFrontPage does its best to squelch your originality at times. Save a new site, and the program tries to name it "myweb4" or "myweb5" (there's that old Microsoft-speak rearing upsee the previous note). Take control and name your site in a more meaningful way. Come up with a short, descriptive name. Use only lowercase letters, and don't include any spaces or unusual characters, like symbols or punctuation marks. Following these guidelines insures that your site will live in harmony with wide variety of Web servers (some of which don't look kindly on things like capital letters, spaces, and so on). 10.5.2. Naming FilesWhile Microsoft Windows lets you create long file names that include spaces and strange characters, Web servers won't stand for such shenanigans. When you're naming files, consider the following:
10.5.3. Creating FoldersA folder containing a FrontPage Web site stands out from the other folders on your computer. A blue globe on a folder indicates that it contains a FrontPage Web site or subsite (Section 10.5.5). The blue globe appears even if you're browsing your computer's directory outside of FrontPage, using Windows Explorer, or opening files within other applications.
One core folder (with just such a blue globe on it) contains your entire site. All your Web pages and their associated files sit in this root folder. As you add more and more files to this folder, it can get cluttered and chaotic, unless you create an organizational system to manage it. What's the best tool for the job? The same one you use to organize the rest of your computer files: the folder. Use folders to group Web files in a way that speeds your work and makes sense to collaborators. A simple Web site folder structure appears in Figure 10-8. A couple of tips:
To create a new folder, go to the folder list and select the existing folder in which you'd like to create it. Right-click the folder and select New 10.5.4. FrontPage's TerritoryYou may not be collaborating with anyone on your Web site. But you're never really working alone. FrontPage toils beside you whenever you're editing your pages. You can see evidence of this right in your Web site's folder list. The program has its own set of folders (such as _derived, _fpclass, _overlay, and _private) that it uses to manage your site. You shouldn't move or interfere with these folders. Because FrontPage tracks and manages aspects of your site behind the scenes, you must always keep the program in mind whenever you're thinking about making any changes (like deleting folders whose names you don't recognize). In other words, never edit folders or file names from outside FrontPage in an application like Windows Explorer. If you use your operating system to copy a graphic file into your site's images folder, FrontPage won't recognize it. Instead, you should use FrontPage to import the file, or insert it onto a page while you're editing. 10.5.5. SubsitesSome areas of a site require special security considerations. If you want to set separate permissions (access restrictions) to certain portions of your site, you'll need to create a subsite. A subsite is a Web site within a Web site. You can turn any folder within your site into a subsite. Designers also use subsites to shield contents of a folder from settings that affect an entire site. For example, if a site features a theme (see Tutorial 11), but you don't want to use this theme within one area, make a subsite to contain that group of pages. Note: Before you run off to create subsites, consider this: when you publish a site, subsites aren't automatically included. You'll have to publish them separately, or turn on the "Include subsites" checkbox when you're configuring publishing options (see Section 13.2.2). This can create confusion (not to mention, some extra work), so create a subsite only if you really need to. You create a subsite as you would any other Web site. In fact, a subsite is really just a Web site. Its presence within the parent site's folder is the only thing that makes it a subsite. Select File You can also turn any existing folder within a site into a subsite. Right-click the folder and select Convert to Web. FrontPage warns you of the consequences involved. (Specifically, the program tells you that it won't treat everything in your root folder as a whole. So automated elements like themes and link barswhich you'll read about in the next tutorialwon't carry over to the subsite.) Click OK. Your subsite now features the blue globe, pictured in Figure 10-9, which denotes a Web site folder. If you change your mind later, you can switch the subsite back into a regular folder. Just right-click the subsite and select Convert to Folder.
|


