Modifying a Text File (defunct)
What is a 'Text File'?
B |
Finding the Files
I |
http://server.cs.uchicago.edu/foo/barthen the file will be located at
/stage/w3serv/server.cs.uchicago.edu/docs/foo/bar.htIf bar turned out to be a directory, the file could also be located at
/stage/w3serv/server.cs.uchicago.edu/docs/foo/bar/index.ht
There are a few files in unusual places that you may also want to edit:
- The list of who's who in the department, which appears both on the main info page and on the people page, is in docs/info/whoswho.ht (see the convention for writing filenames).
- The messages used for logging in and out, changing passwords, etc., are all stored in HT files under special/.
Editing the Files
T |
Of course, you should edit the files within your own development virtual host, and use CVS to commit your changes and see them reflected on the main site. You should be sure to test any changes you make before committing them.
Percent Substitution
H |
- wwwroot
- The base URL of the current server, e.g., http://newtraell.cs.uchicago.edu.
- sect:blah
- The URL of [section] blah. For example, %(sect:events)s generates http://newtraell.cs.uchicago.edu/events, the URL for the Events section.
- person:foo
- The URL of the person page for the person with login foo. For example, %(person:dustin)s generates http://newtraell.cs.uchicago.edu/people/dustin, the URL for Dustin's person page.
The URLs generated by these keys can be extended easily like this: %(sect:info)s/services translates to the URL of the computing services page, which is the URL for the Info section followed by a slash and 'services'. Alternately, this can be written %(/info/services)s, where the initial slash starts at %(wwwroot)s automatically.
It's important to use percent-substitution, because it ensures that the URLs turn out right for the user whether she's logged in or logged out, and whether she's using the main virtual host or a development virtual host. It also allows programmers to change URLs later, and be sure that everything still points in the right direction.