TT Web Site Manager Page contents management
Page contents management

The page contents script allows pages to be composed from code items and their composition to be edited. It also allows the page details to be edited.

The script divides the screen into two main areas. On the left is the main window which lists the page contents, on the right is a window which lists available item containers and the contents of the selected item container.

Page contents    Demo web site - news.html
Page path
Content type
Page type 
Sort order Item name Action
HTML header
Here is the news
News table header
News story
News table footer
The page count is...
HTML footer
Site management - Page management
Refresh this page - Item container management
Item management
Item containers
HTML items
PHP items
SQL/PHP items
SQL items
Conditional items
XBMP items
Container contents:
SQL items
new news SQL
update news SQL
delete news SQL

The form at the top of the main window is very similar to the one on the page management script. It allows you to edit the page path, content type and page type of the selected page. Simply make your changes and click on the "Change" button.

Below the page details form is a list of the code items in the page, descending in the order in which they are placed in the page. The item at the top appears first in the page, the second one comes next, the third after that, and so on.
There are three columns in the item list, Sort order, Item name and Action.
The sort order column simply numbers the items in the order in which they appear in the page. Low numbers appear first, higher numbers thereafter. To move an item up or down, edit the number in the box in this column for the table row relating to the item in question and click on the "Move" button.
For example, in the example page above, if you wanted to move the item "The page count is..." to appear just after the item "Here is the news", you would enter a number between 20 and 30 in its sort order box and click its "Move" button. "The page count is..." would then appear between "Here is the news" and "News table header".

In order to keep the sort order numbers tidy, there is a "Renumber" button at the bottom of the sort order column which renumbers all the sort order numbers in multiples of ten.

Moving across the page contents table, the next column, Item name, simply holds the name of the code item at that position in the page.

The Action column contains two buttons, Edit and Remove which as their names suggest allow the item in that position to be edited or removed fromm the page.
The Edit button opens the item management page at the code item selected to allow its details including the code itself to be edited.
The Remove button does not display a confirmation message before removing the item fom the page because a removed item can simply be replaced in the page if it is removed in error.

On the right hand side of the screen is a requester allowing code items to be selected from item containers and placed within the page contents. To add an item select the radio button next to the name of the item container containing the item 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 add your item to the page by selecting its radio button and clicking the Add item to page button. The item will then appear in the page contents with a default sort order of 1. You can then move the item within the page as described above.

Private page user management Contents Item container management