How do I add static content pages to OSCMAX?
There are four main steps to adding your own custom static content pages to OSCMAX. Follow the tutorial below to create a static page.
Rename the copy to testpage.php. (testpage.php is an example -you can choose a more suitable name for your new page if you prefer)
In testpage.php, edit the following variables:
FILENAME_SHIPPING –Change to– FILENAME_TESTPAGE
CONTENT_SHIPPING –Change to– CONTENT_STATIC
There are two instances of FILENAME_TESTPAGE and one instance of CONTENT_TESTPAGE that need to be changed in total.
Updated : Also change $content_template = TEMPLATENAME_SHIPPING; to $content_template = TEMPLATENAME_STATIC; or it won't work.
When you have changed all four definitions, save this file.
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.
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.');
Finished! To see your new page in your browser use the following address format !http://yourcatalog.com/catalog/testpage.php