Changing Your Catalog Page in Setup Files
In some cases, you may want to use a catalog page other than 'catalog.php' for your site builder system. While you can easily modify the system to use a different page after you install a site, this can be a little time consuming if you have many sites. The instructions below will help you prepare your installation files in advance so that they will use a different catalog page. That way, all new installs will default to having the updated custom catalog page name, instead of catalog.php:
NEW SITES USING CATALOG.HTM (INSTEAD OF CATALOG.PHP)
-
Rename the actual catalog.php page to catalog.htm.
-
Rename all the front end files (except the stconfig.php page) to .htm extensions (ie. rename index.php to index.htm, affiliates.php to affiliates.htm, etc.).
-
Make sure you add an .htaccess file to view sites with .htm extensions.
-
In the setup.php page:
-
Change the line:
CatalogPage varchar(50) NOT NULL default 'catalog.php',
to:
CatalogPage varchar(50) NOT NULL default 'catalog.htm',
-
Change the line:
PageExt varchar(4) NOT NULL default 'php',
to:
PageExt varchar(4) NOT NULL default 'htm',
-
-
If you are using version 2.62 or higher, change the references to .php to .htm. For an easy modification, use the .htaccess file creator.
NEW SITES USING SHOP.PHP (INSTEAD OF CATALOG.PHP)
Note: You can change 'shop' to some other page value in the code below if you wish.
-
Rename the actual catalog.php page to shop.php.
-
In the setup.php page:
-
Change the line:
CatalogPage varchar(50) NOT NULL default 'catalog.php',
to:
CatalogPage varchar(50) NOT NULL default 'shop.php',
-
Change the line:
(2, 'catalog', 'Catalog', 2, 'required', 'Yes'),
to:
(2, 'shop', 'Catalog', 2, 'required', 'Yes'),
-
NEW SITES USING SHOP.HTM (INSTEAD OF CATALOG.PHP)
Note: You can change 'shop' to some other page value in the code below if you wish.
-
Rename the actual catalog.php page to shop.htm.
-
Rename all the front end files (except the stconfig.php page) to .htm extensions (ie. rename index.php to index.htm, affiliates.php to affiliates.htm, etc.).
-
Make sure you add an .htaccess file to view sites with .htm extensions.
-
In the setup.php page:
-
Change the line:
CatalogPage varchar(50) NOT NULL default 'catalog.php',
to:
CatalogPage varchar(50) NOT NULL default 'shop.htm',
-
Change the line:
PageExt varchar(4) NOT NULL default 'php',
to:
PageExt varchar(4) NOT NULL default 'htm',
-
Change the line:
(2, 'catalog', 'Catalog', 2, 'required', 'Yes'),
to:
(2, 'shop', 'Catalog', 2, 'required', 'Yes'),
-
-
If you are using version 2.62 or higher, change the references to .php to .htm. For an easy modification, use the .htaccess file creator.