Dieses Dokuwiki verwendet ein von Anymorphic Webdesign erstelltes Thema.

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

adding_new_static_content_pages [2009/10/30 13:13]
pgmarshall
adding_new_static_content_pages [2009/10/30 13:14]
Line 1: Line 1:
-====== 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**;​ 
- 
-<note tip>​There are **two** instances of FILENAME_TESTPAGE and **one** instance of CONTENT_TESTPAGE and **one** instance of $content_template</​note>​ 
- 
-  * 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:​ 
-<file php> 
-         ​define('​CONTENT_TESTPAGE',​ '​testpage'​);​ 
-         ​define('​FILENAME_TESTPAGE',​ '​testpage.php'​);​ 
-</​file>​ 
- 
-<note tip>​Alternatively the definition format could look like this define('​FILENAME_TESTPAGE',​ TESTPAGE . '​.php'​);​ either method is OK. 
-</​note>​ 
- 
-  * **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. 
-<file php> 
-         ​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.'​);​ 
-</​file>​ 
- 
-    * 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 ​ 
-<file php> 
-                               ​http://​yourcatalog.com/​catalog/​testpage.php ​ 
-</​file>​ 
adding_new_static_content_pages.txt ยท Last modified: 2009/10/30 13:14 (external edit)
You are here: startadding_new_static_content_pages
Dieses Dokuwiki verwendet ein von Anymorphic Webdesign erstelltes Thema.
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0