TT Web Site Manager Site management
Site management

The site management page is the top level for all the TT Web Site Manager administration scripts. Its layout is similar to all the other scripts, with a navigation bar at the bottom of the page below a main table containing the data you are working with and the form choices for the various script functions. Some of the other scripts will also have a menu on the right hand side, but this format sets the pattern for all the scripts. The site management page for the demo site is shown below.

Site management - Demo user is logged in
Site name Base URL Start page Action
Demo web site http://localhost news.html
Site name
Base URL
Start page
Refresh this page - User management - Private page user management
- SQL prompt - Documentation - Log me out

This script lists in a table all the sites that are set up on your TT Web Site Manager installation. Each site has three settings, a free text site name, the full base URL used to access build.php and a default TT Web Site Manager page to be returned if build.php is called with no parameters. This last setting does not have to be set, it defaults to "No start page specified for this site".
There are two reserved sequences of characters which you should not use in the free text name because they are used within the code as delimiters, these are a double comma ,, and a double minus --.
There are three options for each site : Edit, Delete and Enter.

The Edit button populates the form below the table with the site's details allowing you to change them if necessary. When the form is in edit mode in this way, its submit button reads "Update" rather than "New", as shown below. Simply make any required changes in the form, click the "Update" button and the site details will be updated.

Site name Base URL Start page Action
Demo web site http://localhost news.html
Site name
Base URL
Start page

The Delete button allows a site to be deleted from the TT Web Site Manager installation. This should only be used with care because as well as removing the site entry it will also remove any pages created within that site. For this reason a confirmation message as shown below is displayed before anything is deleted.

Site name Base URL Start page Action
Demo web site http://localhost news.html
Are you really sure you want to delete this site? Deleting a site also removes any pages associated with that site.

The Enter button simply takes you to the page management script for the site selected. If for some reason this button dumps you back into the site management script and you are unable to go to the page management script then the username you are logged in under probably has not been given permission to work on this site. At this point you will have to go to the user management script to give the user under which you have logged into the TT Web Site Manager the rights to the site.

To create a new site, assuming that you have not selected a site for editing and that you have the rights to create new sites, just enter the details of the new site into the form at the bottom of the page and click on the "New" button. This will create the site, though before you can enter it you will have to go to the user management script to give the user under which you have logged into the TT Web Site Manager the rights to work on your new site.

The navigation menu at the bottom of the page has some items in it that only appear if your login has the rights to use them. These are the links to the user management, private page user management and SQL prompt pages.

Using the TT Web Site Manager Contents User management