====== How do I add static content pages to osCMax? ====== Source: [[http://www.oscmax.com|oscmax.com]] - //Thanks to [[http://www.oscmax.com/forums/members/michael_s.html|michael_s]]// \\ There are **four** main steps to adding your own custom static content pages to osCMax. Follow the tutorial below to create a static page. ===== Step 1: Copy shipping.php ===== * First, **copy** the shipping.php file in your main catalog directory. * **Rename** the copy to testpage.php. (testpage.php is an example - you should choose a more suitable name for your new page) ===== Step 2: Edit your new page ===== * In testpage.php, edit the following variables: * FILENAME_SHIPPING --//Change to//-> FILENAME_**TESTPAGE** * CONTENT_SHIPPING --//Change to//-> CONTENT_**STATIC** * $content_template = TEMPLATENAME_SHIPPING; --//Change to//-> $content_template = TEMPLATENAME_**STATIC**; There are **two** instances of FILENAME_TESTPAGE and **one** instance of CONTENT_TESTPAGE and **one** instance of $content_template * When you have changed all **four** definitions, **save** this file. ===== Step 3: Register the new filename ===== * Open **filenames.php** which is in your **catalog/includes** directory and create the following variable definitions: define('CONTENT_TESTPAGE', 'testpage'); define('FILENAME_TESTPAGE', 'testpage.php'); Alternatively the definition format could look like this define('FILENAME_TESTPAGE', TESTPAGE . '.php'); either method is OK. * **Save** this file. ===== Step 4: Create the new language file ===== * **Copy** the file /catalog/includes/languages/english/shipping.php and rename it to testpage.php. * **Edit** the file /catalog/includes/languages/english/testpage.php to reflect your new page content. * **Edit** the regions between the inverted commas shown in this example as "New Created Static Page" and "This page tells..." to produce the content you want then save the file. define('NAVBAR_TITLE', 'New Created Static Page'); define('HEADING_TITLE', 'New Created Static Page'); define('TEXT_INFORMATION', 'This page tells you how to add a new static page to OSCMAX using the Template Structure.'); * If you need to return to edit the new page you can find it here /catalog/includes/languages/english/testpage.php ---- === Finished! === * To see your new page in your browser use the following address format http://yourcatalog.com/catalog/testpage.php