Managing TGP Pages

Introduction

Generating TGP pages is one of the basic functions of AutoGallery SQL. The Manage Pages interface is where you will tell the software which pages it should be creating for you. Your pages can be located in any directory of your website, and can be configured to display multiple categories or only a specific category. You can add or delete pages at any time through the Manage Pages interface.

Adding a Page

To add a new TGP page locate and click on the Manage Pages link in the TGP Pages section of the control panel menu. On the page that loads you will find at the top a box entitled "Add New TGP Page". You will need to fill in this form to add a new TGP page. Each of the fields is described below. Once you have filled in the fields how you want them, press the Add Page button. The software will check to make sure that the directory exists and has correct permissions. If there are no problems, the page will be added and you will be returned to the same page.

The Filename Setting

The filename setting allows you to specify the directory path and filename you want to use for your TGP page. This will always be prefixed by your document root, which means that the TGP pages must be generated inside the web-accessable folder of your site. So, for example, if you wanted to have a file named tgp.html and have it placed inside your galleries directory you would enter this:

galleries/tgp.html

This would require that you have a directory named galleries inside your document root. You would also need to make sure that directory has 777 permissions. If the tgp.html file already exists, you should delete or rename it so the software can create it's own copy of that file.

The Build Order Setting

The build order setting tells the software which order the pages should be built in. The page with build order 1 is built first, 2 is built second, 3 is build 3rd, and so on. The build order is important especially if you are going to have archive type pages where your older galleries are displayed. Any page where you want older galleries displayed should be built after your main page(s) that show the newest galleries. For example, if you have a main page named index.html that shows the 100 most recent galleries and a page named archive.html that displays the old galleries that are no longer on the index.html page you will want the index.html page built first (build order 1) and the archive.html page built second (build order 2).

Editing a Page

If you want to change the filename, build order, or category for a page you can click on it's [Edit] link. This will open a popup window where you can see the current settings and edit them how you like. Once you have made the changes you want, press the Update This Page button.

Deleting a Page

If you want to completely remove a page click on the [Delete] link. You will be asked to confirm the deletion, and if you press the Ok button the page will be deleted. This will remove it's template but will not remove the actual generated TGP page. It will not be possible to recover the template for this page once you delete it, so if you want to save the template make sure you do that before you delete the page.

Category Page Creation

If you have a large number of categories and want to generate pages for one or all of them, it would be very time consuming to add one page at a time through the standard page creation interface. Instead the software has a utility which will add multiple categories for you at once. From the Manage Pages interface you can click on the Automatic Category Page Creation link. This will bring you to a page where you can configure how and what pages should be created. Once you have filled out all of the fields with the values you want, press the Create Category Pages button. The software will automatically add the new pages to the database and you will be returned to the category page creation form.