Creating and Publishing Files Using the public_html Directory

This section describes how to author and publish files easily. The method described works only if your system is running the FastTrack server.

  1. Using dirview, open your home directory and locate the directory public_html; open this directory.

    This is the directory in which you'll author all your HTML documents.

  2. In dirview, add a shelf to the open project root directory window by choosing View > Shelf.

  3. Place the cosmocreate icon on the shelf.

  4. If you plan to include images and other types of media in your documents, create subdirectories for each media type. This makes finding and linking the files much easier.

    For example, you might create one subdirectory called images and another called movies.

  5. For each subdirectory you created, create a shelf as you did in the project root directory, and drag the appropriate media tools onto the shelf.

  6. Create the files you plan to link to or, if they already exist in another location on your system, move them or place copies of them in the appropriate subdirectories.

    For example, copy several GIF or JPEG files into your images directory.

    Note: To save on disk space, rather than copying files into the subdirectories, you can make linked copies of files by choosing Selected > Make Linked Copy in a directory view window. Then drag the linked copies into the subdirectories and remove "link_to_" from the filename.

  7. Start Cosmo Create from the shelf, either by double-clicking its icon or by dragging an HTML document icon from the project root directory onto the Cosmo Create icon.

  8. Edit and save your HTML document in the public_html directory.

    The document is automatically available for viewing. Other users can view the document by specifying the following URL:

    http://<systemname>/~<username>/<filename>.

Note: Since all files and directories in public_html are available for others to view, you probably don't want to place confidential files in this directory.