TT Web Site Manager Item management: General
Item management: General

The item management script is where the TT Web Site Manager user creates and manages their code items. It has 3 main features, a form for changing an item's properties and a large textarea for the item's code in the main window and an item rquester similar to the one in the page contents script on the right hand side. The format of the code textarea depends on the type of code item, we will deal with the different types individually in the following pages. The properties form and the item requester are common to all item types so they are dealt with here.

Item management - HTML header
Item name
Container
Type

Enter only static content you want the server to deliver direct to the browser.
Code

Site management - Page management - Page contents - Item container management - Refresh this page
Item containers
HTML items
PHP items
SQL/PHP items
SQL items
Conditional items
XBMP items
Container contents:
HTML items
HTML header
HTML footer
Here is the news
News table header
News table footer
New news item form
You can edit here

At the top of the main window on this script is a form for changing the item's properties. You can do 3 things with this form, change the item's name, assign it to another item container or change its type. This form is part of the same HTML form as the code textarea so if either of the submit buttons in the main window are clicked upon then the contents of all the inputs in the main window are saved.

On the right hand side of the screen is a requester allowing code items to be created, deleted or selected for editing in the main window. To select an item container to work in select the radio button next to its name in the upper list and click on the Show contents button. This will list the contents of the selected item container in the lower half of the requester. You can then select the item you wish to work on by clicking on its radio button and then selecting the button relevant to the action you wish to perform.

The Edit button loads the item's properties and code into the form on the right hand side of the page to allow you to edit them. It does not save whatever was previously in the form so if you had made any unsaved changes they would be lost. This is worth remembering, click the Save button as often as you can!
The New button creates a new item called simply "New Item" in the selected item container. You can then change its properties at will.
The Delete button displays a delete confirmation message at the top of the main window asking you to click again to delete the selected item.

Item container management Contents Item management: HTML items