Page management
|
|||
|
Page management
The page management script lists all the TT Web Site Manager pages for a selected site. It allows pages to be created and deleted, as well as page names and content types to be edited.
To create a new page, enter the name you wish to give the page in the "Page path" box in the form and click on the "New" button. The form defaults to the text/html content type used by most web pages, however you can give your pages any content type you wish, or even specify no content type at all. The latter option is useful if you intend to create a script using the TT Web Site Manager which returns a custom header such as a HTTP redirect. The final form item selects whether the page is public or private. Public pages are accessible to all viewers wheras the access to private pages is controlled by logging in using one of the username/password combinations created with the private page user management script. The "Edit" button brings you to the page contents script which is the script used to assemble the page itself and edit the page details. The final page management function of this script is the "Delete" button. This displays a confirmation message as shown below, when the user clicks on the "Confirm delete" button the page will be deleted.
This script also allows you to import and export sites from and to local files in XML format. This feature allows easy transfer of site code from a development server to a live server or the easy redistribution of site components from one site to another. An exported site as an XML file contains all its pages, item containers and items, but no other user data or tables. To export a site from its page mamanement screen, click on the "Export this site to a file" button. This will initiate a download of the exported site as an XML file with the same name as the site. To import a site from a local exported XML file use the "Browse" button to select the local file and click the "Import into this site from this file". This will take you to the site import script which uploads the file and lists the pages, item containers and items imported into the site. The imported item containers are prefixed with whatever value $import_prefix is set to in the file ttwm_lang.php. By default this is set to the empty string. Typicaly an import would be performed into a freshly created empty site, but an export file can be imported into any site, regardless of what it already contains. This might be useful to add extra externally sourced functionality to a TT Web Site Manager site.
|
||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||